Board index » delphi » Load and print a quick report file

Load and print a quick report file

Delphi 3; QR2.
I can load a quick report and preview it with:
  ...
  Form2.QuickRep1.QRPrinter := QrPrinter;
  Form2.QuickRep1.QRPrinter.Load('d:\xxxx\yyyy.qr');
  Form2.QuickRep1.QRPrinter.Preview;
  ...
However if I click on the print button I always get two empty pages!
The same if the third line were 'Form2.QuickRep1.QRPrinter.Print;'.

What do I miss? Can anyone help?
Thanks all, Paolo Balducci

 

Re:Load and print a quick report file


Shouldn't your file extension be qrp?

May be more problem, but that caught my eye off the bat.

Quote
"Paolo Balducci" <[cisa...@mbox.dinamica.it]> wrote in message

news:01bf9571$cfe7c7e0$7900a8c0@freud...
Quote
> Delphi 3; QR2.
> I can load a quick report and preview it with:
>   ...
>   Form2.QuickRep1.QRPrinter := QrPrinter;
>   Form2.QuickRep1.QRPrinter.Load('d:\xxxx\yyyy.qr');
>   Form2.QuickRep1.QRPrinter.Preview;
>   ...
> However if I click on the print button I always get two empty pages!
> The same if the third line were 'Form2.QuickRep1.QRPrinter.Print;'.

> What do I miss? Can anyone help?
> Thanks all, Paolo Balducci

Re:Load and print a quick report file


When you save a report from QuickReport Preview you have .qr extension.
I think you would get .qrp if you save from QRPreview component.
I would prefer to save from QuickRep component.

MikeH <mhyr...@gtii.com> wrote in article
<8bghie$a...@bornews.borland.com>...

Quote
> Shouldn't your file extension be qrp?

> May be more problem, but that caught my eye off the bat.

Re:Load and print a quick report file


Solved with version 2.0k (I previously had version 2.0c)!!!
Furthermore when I save the report I get a *.qrp file instead of *.qr.

Other Threads