Welcome! Log In Create A New Profile

Advanced

WD11: How many page in the report?

Posted by Swissstephan 
Swissstephan
WD11: How many page in the report?
October 03, 2008 09:44PM
Hi
Do I have any chance to know who many page are in a report?
Since I want to change an image on the second last page, it would be great to know that in advance.
Thanks for any advice. Stephan
Al
Re: WD11: How many page in the report?
October 04, 2008 05:38AM
Hello Stephan

Because the reports are dynamically formatted to suit the available data, the nominated printer and the paper size it is impossible to predict the number of pages or where data will appear so you have to run the report once to count the pages and then run it again. The first run should be to a file which you can then discard.
The IpageNum variable holds the number of pages from the first print run and you can store that to a global variable and use it in the second print run.

Regards
Al
Swissstephan
Re: WD11: How many page in the report?
October 04, 2008 01:48PM
Hi Al
Thanks a lot. I'll try that!
Kind regards Stephan
Rich
Re: WD11: How many page in the report?
December 14, 2008 11:04PM
Al.

Can you tell me what command to use to print to a file please?

I am not using the report editor to create the report. I am using iPrint in code.
Al
Re: WD11: How many page in the report?
December 15, 2008 12:31PM
Hello Rich

I have not done any reports using Iprint, but you might have some luck with IDestination() before sending your report.

Perhaps it is possible to send the report to IPreview() where the preview window is either invisible or offscreen.

Regards
Al
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: