From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Print Last page blank , How to avoid last page to print , Using NiReport

Solved!
Go to solution

Hi  all,

 

I am using  NIReport to generate the report/Print.

 

I have problem

I have one page to print,  

I have written till the last line

Problem is that NI Report is adding a new blank page which is not needed.

This problem doesn,t occur when we don't write in  the last line or left blank.

 

Note : I have a header and footer details also

It will be printed on the blank page.

 

 

 

When NIReport  understand  specific text  is last line of page, then NIReport  automatically adding new page in  template .  

 

How to avoid  to print last blank page in NIReport ?

 

 

Thanks

Mukesh Kumar 

 

 

0 Kudos
Message 1 of 2
(4,165 Views)
Solution
Accepted by topic author mukesh121

Just a guess: are you using AppendLine? If so, you could try to switch to AppendText to write the line, adding NewLine as the first call when you need to start a new line. AppendLine add a new line to the report after printing the line, and this could generate a blank page if you are writing to the last line in the page.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,159 Views)