Andrew Price
2020-07-30T15:03:50Z
Hi

I have just upgraded from v6 to v10 and ran my 3 page report to print preview and the CalcPageCount returned 1.

Printing a 3 page report, at version 6 the call to CalcPageCount returned 2, which I added 1 to get the total number of pages.

At version 10 the CalcPageCount now returns 1.

The data has not changed and the preview still displays all 3 pages.

Can you investigate please?

Thanks


Andrew Price
2020-07-30T15:36:36Z
Just to let you know, I am settings .document.defaultpagesettings.landscape = True

So it may be a case that the CalcPageCount is assuming Portrait?

Thanks
Sergiy/10Tec
2020-07-31T04:14:55Z
I can not reproduce the problem. I have tried also with landscape. CalcPageCount returns correct results...
Could you please send us a sample project with the problem? (to contact@10tec.com)
Andrew Price
2020-07-31T06:19:56Z
I call it immediately before printmanager.print and printmanager.printpreview

I have worked around my issue, for now, by storing the .pagecount from within CustomDrawPageHeader until I work out whats causing it.

Thanks