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

How to update zoomPercentage edit control

edited May 2003 in General
For reports which are MDIChild type windows I read the zoomPercentage by
if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
myZP := TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage;

I change the zoomPercentage in code using

if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage := newZP;

After this line the zoomPercentage edit control still show the previous
zoomPercentage.
How can I force theZP edit contro to update itself?

Thanks

Comments

This discussion has been closed.