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

ZoomSetting??

edited April 2002 in General
Hi,

As per examples in the online help file, I have tried the following to no
avail:

ppReport1.PreviewForm.Viewer.ZoomSetting := zs100Percent

When compiling it refuses to recognise ZoomSetting as a valid property. I
have included ppViewr in uses but this has not helped.

Also I have tried calling this in the ppReport1PreviewFormCreate, but
noticed that this event is never executed, even after I execute
Report1.Print.

Any reasons?

Thanks

Alex

Comments

  • edited April 2002
    The Viewer property is of type TppCustomPreviewer. Therefore you must cast
    it to a TppViewer to access the ZoomSetting property, ie.
    TppViewer(ppReport1.PreviewForm.Viewer).ZoomSetting := zs100Percent;

    Make sure you add ppViewr to the uses clause.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.