Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to press [pageWidth] progrmatically?

edited May 2003 in General
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

Comments

  • edited May 2003

    The message below has unstated wrong assumptions, so ignore it.


This discussion has been closed.