I just went to File | New and selected Report from the repository.  There
is no need to put it on a form.
QuickReport1 is just a "form" - in a way.

I had a button on my main form.  It created the report and previewed it.
Email me off list if you want the
project I slapped together.

JED

[EMAIL PROTECTED] wrote on 10/06/2003 01:51:15 PM:

> On 10 Jun 2003 at 13:10, Jeremy North wrote:
>
> > I would use this.  You have to use _PreviewModal_ in this instance.
> >
> >      if opendialog1.execute then
> >      begin
> >           QuickReport1 := TQuickReport1.Create(self);
> >           try
> >              QuickReport1.Prepare;
> >              QuickReport1.QRPrinter.Load(opendialog1.filename);
> >              QuickReport1.QRPrinter.PreviewModal;
> >           finally
> >              QuickReport1.Free;
> >           end;
> >      end;
> >
> To get this to work it seems that I would have to put a TQuickRep
> component on the main for of the application, (which I don't want to
> do).  How would I modify this so that I could use a TQuickRep
> component on another form?  (yeah - I know, I should know this stuff by
> now!)
> Mark



This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the [EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to