>>>This is from the FAQ section of the universal thread
>>>
>>>*****
>>>Since there is no function to calculate the total # of report, here are two suggested solution to fix it.
>>>
>>>1) Print the report twice:
>>>get the system variable _pepage after first print!
>>>
>>>Report form myreport to prompt NoConsole
>>>
>>>(print to screen but don't show to screen.. ~__^)
>>>
>>>public totalpage
>>>totalpage = _pepage
>>>
>>>and use this variable in report to print.
>>>
>>>2) Use a formula to do:
>>>thm.:
>>>
>>>totalpage = CEILING(RECCOUNT()/Num_of_Rec...
>>
>>
>>Hi Bret,
>>
>>I have an impression, that this section in KB should be updated. I saw this problem hundreds of times here in UT and the proposed safe solution is:
>>local lnTotalPages, lcTempFile
>>lcTempFile=lcTempPath+"dummy.txt"
>>REPORT FORM myReport to FILE (lcTempFile) NOCONSOLE
>>lnTotalPages=_pageno
>>REPORT FORM myReport to (YOUR DEVICE FOLLOWS HERE) NOCONSOLE
>>delete file (lcTempFile)
>
>I think you are right, but do we email Michel on this or is there a way we can modify the FAQ?
Currently it seems no way once the item was added (or I haven't found a way). May be it's time for UT suggestion? :) Do you want to add it in Document?
If it's not broken, fix it until it is.
My Blog