QuickReport

Hello,
How can I load a file (*.qrp) where I open a QuickReport ?
Thanks
       Gaëlle
gaelleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

florisbCommented:
unstructured shitty qrep help, remember it was there:

Q:

How do I load a previously saved report via code?

A:

We have a new class, TQRPHandler, that is defined and documented in the QRBonus unit.  This class is designed to easily allow you load a saved report using the following syntax:

  with TQRPHandler.Create do
  try
    Filename := 'somefile.QRP';
    Preview; {or}
    print;
  finally
    Free;
  end;

hope this helps,
Floris.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gaelleAuthor Commented:
I don't find new class: TQRPHandler.
Gaëlle
0
florisbCommented:
Found it on quick rep pages:
- Registered users will find a new class in the Qrbonus unit. TQRPHandler is a simple class that
takes the hassle out of previewing and printing reports saved to .QRP file

So my answer is: get the update. perhaps someone else has an alternative....?

TZRPHandler 'takes the hassle'; so there's another way; with hassle...:-)

Check:
http://www.qusoft.com/
0
gaelleAuthor Commented:
Floris,
I find unit QrBonus.pas but when Ii use TQRPHandler, Delphi can't recognize this. Do you know why ?
Gaëlle.
0
florisbCommented:
i have no idea, I answered your question checking the help (Okee, I do have some experience using qreport).

Is it a unit you have to put in your uses list, or is it something to add components? Try Component | Install component and then the pas file.

Floris.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.