Board index » delphi » Load/Save QReport

Load/Save QReport

Hi,

Does anybody know if it is possible to load/save QReport from the code (not
using the Preview Load/Save Buttons).
For example:
QuickRep1.Print;
{on Event AfterPrint ... I would like to Save this report into
something.qrp - for example)

QuickRep1.Preview;
{on Event OnPreview ... I would like to Load something.qrp and then view it
with Preview!}

Is this possible and if, how?

Thanks for answers,

Peter

P.S.: I am using D6.

 

Re:Load/Save QReport


Of course, you can do it:
- to save a prepared report:
yourQR.Printer.Save(FileName);
- to load a prepared report:
yourQR.Printer.Load(FileName);

--
With best regards, Mike Shkolnik
E-Mail: mshkol...@scalabium.com
WEB: http://www.scalabium.com

Peter <Peter.Koro...@guest.arnes.si> D???
???Y??:adn5l4$27...@planja.arnes.si...

Quote
> Hi,

> Does anybody know if it is possible to load/save QReport from the code
(not
> using the Preview Load/Save Buttons).
> For example:
> QuickRep1.Print;
> {on Event AfterPrint ... I would like to Save this report into
> something.qrp - for example)

> QuickRep1.Preview;
> {on Event OnPreview ... I would like to Load something.qrp and then view
it
> with Preview!}

> Is this possible and if, how?

> Thanks for answers,

> Peter

> P.S.: I am using D6.

Re:Load/Save QReport


Thanks ... it works. ;)

Peter

Quote
"Mike Shkolnik" <mshkolnik2...@ukr.net> wrote in message

news:adners$d0b$1@news.lucky.net...
Quote
> Of course, you can do it:
> - to save a prepared report:
> yourQR.Printer.Save(FileName);
> - to load a prepared report:
> yourQR.Printer.Load(FileName);

> --
> With best regards, Mike Shkolnik
> E-Mail: mshkol...@scalabium.com
> WEB: http://www.scalabium.com

> Peter <Peter.Koro...@guest.arnes.si> D???
> ???Y??:adn5l4$27...@planja.arnes.si...
> > Hi,

> > Does anybody know if it is possible to load/save QReport from the code
> (not
> > using the Preview Load/Save Buttons).
> > For example:
> > QuickRep1.Print;
> > {on Event AfterPrint ... I would like to Save this report into
> > something.qrp - for example)

> > QuickRep1.Preview;
> > {on Event OnPreview ... I would like to Load something.qrp and then view
> it
> > with Preview!}

> > Is this possible and if, how?

> > Thanks for answers,

> > Peter

> > P.S.: I am using D6.

Other Threads