>
> > 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.

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

Thanks Patrick, will try this on Monday.

Is QR still supplied with D5?  Is the documentation any better?
Mark


>
>
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
begin:vcard 
n:Howard;Mark
tel;cell:(021) 477 564
tel;fax:(07) 348 8178
tel;work:(07) 348 8177
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Forest Production Systems Ltd
end:vcard

Reply via email to