Solved

QuickReport 3.05 - How to 'load' a saved report (*.qpr)?

Posted on 2001-06-14
2
334 Views
Last Modified: 2013-11-22
Hi everybody,

I am working in an application that will populate a grid with the output of a TQuery component.

The same TQuery is used as datasource for a QuickReport report. I want to save the reports (*.Qpr) files and then be able to load them when desired to the preview form.

I have got this algoritsm (assuming that 'somefile.qrp' already exists)


uses .....,qrExtra;
.
.
.

Procedure tForm1.Button1Click ( Sender:tObject)
Begin
 With tQrHandler.Create Do
 Try
   Filename := 'somefile.qrp';
   preview;
   // Or Pritn;
 finally
   Free;
 End;
End;

However, when I tried to compile my application, Delphi generates and error message saying that tQrHandler is an unrecognized identifier.

Any ideas how to solve this one???

Thanks,

Milton
0
Comment
Question by:miltonrodrigueza
2 Comments
 
LVL 17

Accepted Solution

by:
geobul earned 100 total points
Comment Utility
Hi,
As I remember it is TQRPHandler

Regards, Geo
0
 

Author Comment

by:miltonrodrigueza
Comment Utility
geobul, I am accepting your answer since your suggestion allow me to do exactly what I asked for.

Now I have a different issue to deal with. Would you mind to have a look to my new question titled "D5 - QR3 How to create a dynamic report?"

I would appreciated it very much if you can give me a hand with that.  One more time thatks a lot.

Milton
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now