PDA

View Full Version : Total page count bug?



Clayton
23-Jul-2010, 08:04 AM
Hi,

I've created the function below and placed it at page footer (already tried it between () and with CStr function, got same behaviour):

return {&Page Number}+'/'+{&Total Page Count}

The "&Total Page Count" is always equal "&Page Number", in all pages. When I add the "Page N of M" or "&Total Page Count" special field to the report the "&Total Page Count" at the function is correct.

Can you reproduce this and confirm as a bug?

Thanks.

Vincent Oorsprong
23-Jul-2010, 12:13 PM
Clayton,

The information is not incorrect. At the moment of printing the first page the function returns 1/1, the current page is one and at that moment the total number of pages is also 1. When page 2 is printed the function will return 2/2 for the 2nd page but if you go back to page 1 that page will now show 1/2. So you have to go to the last page first before your function will be correct.

If you print to printer or export to PDF you will see all pages show the correct result.

Clayton
23-Jul-2010, 12:38 PM
Vincent,

Ok, that's true.

But why my function works as exepected when I place "&Page N of M" or "&Total Page Count" special field to the report? :confused:

Sounds like a bug to me.

Thanks.

Vincent Oorsprong
24-Jul-2010, 11:55 AM
Clayton,

We have given it a thought and we will mark the current behavior as a bug.

The workaround is to place a "Page N of M" in the report.