Board index » delphi » Loading and saving QRP-Files

Loading and saving QRP-Files

Hello,

how can I load and save QRP-Files in runtime? I want to print a report and
save it for latter use on my HD. Is there any special kind of ExportFilter?
I use Delphi5 and Quick Report 3.0.7.

 

Re:Loading and saving QRP-Files


To save your Report, you must add in your QuickReport a component :
QRTextFilter : File.TXT
QRCSVFilter : File.CSV
QRHTLMFilter : File.HTM
Have a look in the help file concerning save method.
Hope that I help you
Quote
Bernd Junk wrote:
> Hello,

> how can I load and save QRP-Files in runtime? I want to print a report and
> save it for latter use on my HD. Is there any special kind of ExportFilter?
> I use Delphi5 and Quick Report 3.0.7.

Re:Loading and saving QRP-Files


You can save and load .QRP files calling
QuickRep.QRPrinter.Save(FileName)
QuickRep.QRPrinter.Load(FileName)

regs/angshu

Quote
Bernd Junk <bj...@fixemer.de> wrote in message

news:8m3cca$c492@bornews.borland.com...
Quote
> Hello,

> how can I load and save QRP-Files in runtime? I want to print a report and
> save it for latter use on my HD. Is there any special kind of
ExportFilter?
> I use Delphi5 and Quick Report 3.0.7.

Re:Loading and saving QRP-Files


It works. Thanks a lot!
angshu <ang...@agnisoft.com> schrieb in im Newsbeitrag:
8mb1q6$mn...@bornews.borland.com...
Quote
> You can save and load .QRP files calling
> QuickRep.QRPrinter.Save(FileName)
> QuickRep.QRPrinter.Load(FileName)

> regs/angshu

> Bernd Junk <bj...@fixemer.de> wrote in message
> news:8m3cca$c492@bornews.borland.com...
> > Hello,

> > how can I load and save QRP-Files in runtime? I want to print a report
and
> > save it for latter use on my HD. Is there any special kind of
> ExportFilter?
> > I use Delphi5 and Quick Report 3.0.7.

Re:Loading and saving QRP-Files


Take care anyway :)
I had no succes trying to print afterwards on a different printer :(

"Bernd Junk" <bj...@fixemer.de> a crit dans le message news:
8mbqic$3...@bornews.borland.com...

Quote
> It works. Thanks a lot!
> angshu <ang...@agnisoft.com> schrieb in im Newsbeitrag:
> 8mb1q6$mn...@bornews.borland.com...
> > You can save and load .QRP files calling
> > QuickRep.QRPrinter.Save(FileName)
> > QuickRep.QRPrinter.Load(FileName)

> > regs/angshu

> > Bernd Junk <bj...@fixemer.de> wrote in message
> > news:8m3cca$c492@bornews.borland.com...
> > > Hello,

> > > how can I load and save QRP-Files in runtime? I want to print a report
> and
> > > save it for latter use on my HD. Is there any special kind of
> > ExportFilter?
> > > I use Delphi5 and Quick Report 3.0.7.

Re:Loading and saving QRP-Files


Quote
> I had no succes trying to print afterwards on a different printer :(

If you want to print to a different printer change
QuickRep.PrinterSettings.PrinterIndex
or
QuickRep.QrPrinter.PrinterIndex

In previous versions once you load a file then a Member FReportLoaded used
to be set to true which would not allow you to change the printer again
(  .. don't know about the recent versions.
So I guess the best chance is to set the printerindex in case you are going
to print to different printers. bring up  Printersetup dialog calling
QuickRep.QRPrinter.PrintSetup before you load a report.

You can always free the report and select a different a printer next time
;-)
regs/angshu

Other Threads