Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Richard3
Contributor III
Contributor III

Porque los script de Pixel Perfect no funcionan para Qlik NPrinting September 2020, Versión: 20.31.2.0.

Hello everyone.
I'm trying to show the first 10 rows of a table in pixel perfect and I saw a documentation that indicated that it could be done through a C# script, but I apply the script and it doesn't work for me and in a video I saw it can be seen that it works correctly, but I did everything the same and it still doesn't work, could you please help me.

My Nprinting version is Qlik NPrinting September 2022, Version: 20.31.2.0.

Here the code I have used:

using System.Drawing.Printing;
private int detailRowCount = 0;
private int topNRow = 10; //number of rows to be displayed. change this to display a different number of rows
//show only the first topNRow rows
private void Detail_BeforePrint(object sender, PrintEventArgs e) {
if (++detailRowCount > topNRow)
e.Cancel = true;
}

1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

Refer to my answer in the post https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-a-pixel-perfect-table-limited-to-10-rows/...

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

View solution in original post

1 Reply
Ruggero_Piccoli
Support
Support

Hi,

Refer to my answer in the post https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-a-pixel-perfect-table-limited-to-10-rows/...

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.