> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark Howard
> Sent: Friday, 28 January 2000 16:43
> To: Multiple recipients of list delphi
> Subject: [DUG]: Quick Report Preview
>
>
> Hi. A newbie (still!) question.
>
> 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.

> 2.  How can I tell QRPrinter to display the report at say 90%,
> programmatically?

Set the Zoom property to 90.

Otherwise call the ZoomToWidth or ZoomToFit methods of the Preview
component.

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

Reply via email to