Example of Page n of n needed

I have a need to show the Page n of n and have looked at the topics suggested.

The one that seems to be suggested is not clear (to me).

CLEAR(Testreport);
TestReport.SAVEASHTML('c:\test.html');

//Call a function in the report that returns
//"CURRREPORT.PAGENO" after the SAVEASHTML has finished
PageCount := TestReport.ReturnTotalPages;
CLEAR(TestReport);

//Call a funtion in the report and use the PageCount
//as Parameter
TestReport.DefTotalPages(PageCount);
TestReport(RUN);

//END of sample

"TestReport" is a Variable of type Report
"PageCount" is a variable of type Integer

Does someone have a sample they could send me in .txt mode please?
I am sure all you hot code demons will see how this example hangs together, but I have had a go at it and failed.
[:I]
Many thanks,
Colin

Related
Recommended