How to press [pageWidth] progrmatically?
Hello
On the prieview screen is the [pageWidth] button. I want to effectively
press this button in code. Can this be done?
In the OnPreviewFormCreate event handler I can set
tppViewer(myReport.PreviewForm.Viewer).zoomSetting := zspageWidth;
but this alone does make the zoomSetting adopt the "pageWidth property" (bad
description but what I mean is after doing this, when the form is resized
the zoomPercentage stays fixed, so the pageWidth property is not in effect).
Following the above line of code with
tppViewer(myReport.PreviewForm.Viewer).DoOnPageChange;
does not force the "pageWidth property" either.
Thanks
On the prieview screen is the [pageWidth] button. I want to effectively
press this button in code. Can this be done?
In the OnPreviewFormCreate event handler I can set
tppViewer(myReport.PreviewForm.Viewer).zoomSetting := zspageWidth;
but this alone does make the zoomSetting adopt the "pageWidth property" (bad
description but what I mean is after doing this, when the form is resized
the zoomPercentage stays fixed, so the pageWidth property is not in effect).
Following the above line of code with
tppViewer(myReport.PreviewForm.Viewer).DoOnPageChange;
does not force the "pageWidth property" either.
Thanks
This discussion has been closed.
Comments
The message below has unstated wrong assumptions, so ignore it.