Menu

#119 Page Range in Print Dialog is Incorrect/Parameter Reset after CalcReport

v1.0_(example)
open
None
3
2014-02-28
2014-02-28
Pastymage
No

Using the ActiveX 2.9b on Win XP, the print dialog shows a range of 1 to 16959, regardless of the actual number of pages, which can be troubling for users. :)

As a workaround, I tried making a parameter (NUMPAGES) to store the page count which is incremented on after_print. I figured I could do a CalcReport and then fetch it myself with GetParamValue and show my own print dialog manually, then use PrintRange with the results. But even after calling CalcReport, it's coming back 0 with GetParamValue.

As an extreme workaround, I can save the report as a temporary PDF then parse that file for the page count and go from there, but that's kludgy to say the least.

Discussion


Log in to post a comment.

Auth0 Logo