> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark Howard
> Sent: Friday, 28 January 2000 20:39
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Quick Report Preview

> >
> > > I have a simple app in which the user can click on a button to
> > > have a look at a pre-run copy of a QuickReport (.QRP format).
> > > All that happens is that a QRPrinter component loads the required
> > > report and then Previews it.
> > >
> > > However, the report is previewed by default at about 150% size.
> > > 2 questions -
> > >
> > > 1. When I click on one of the Size buttons on the Preview screen
> > > I get an Access Violation error.  Any ideas why?
> >
> > I assume you are using the Preview component with your own code
> behind it.
> > If you try to reference the preview before it has run then the QRPRinter
> > property is nil, I think. I just put an exception handler in my code.
>
> No, I'm using the default Preview.  It cannot tb nil, because it
> has displayed
> the report (at150%).  It is when I then go to change the display
> size that I
> get the error.
>
> >
> >
> > > 2.  How can I tell QRPrinter to display the report at say 90%,
> > > programmatically?
> >
> > Set the Zoom property to 90.
>
> Tried that - no effect.  My documentation (such as it is) say
> this does NOT
> affect the size that the report is displayed.  (Beats me what it does do.

If you are using the QRPreview component there is a zoom property in that
component. You may wish to consider creating your own preview form with the
QRPreview component.

Reports also have a Zoom property, this is only for design time use (when
laying out reports) and has no effect on the preview

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to