Solved

Load a file into quick report

Posted on 2004-03-22
3
1,084 Views
Last Modified: 2007-11-27
How can I load a file into my quick report?
File is where app. exe is...
0
Comment
Question by:Bosanac
3 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
ID: 10649002
what do you mean? Loading pre-saved reports?
If so look this:

procedure TForm1.Button1Click(Sender: TObject);
begin
quickrep1.Prepare;
quickrep1.qrprinter.load(ExtractFilePath(Application.exename)+'filename.qrp');
quickrep1.QRPrinter.Preview;
end;
0
 

Author Comment

by:Bosanac
ID: 10650039
No,I have a file and would like to print it with quick report...
Classic *.txt file....
0
 
LVL 3

Accepted Solution

by:
marcoszorrilla earned 25 total points
ID: 10650326
You can Load the file in a Memo control and then use the OnNeedData evento from quick report to Print, you have an example in th Demos Directory Borland\delphixxx\Quickrpt\qr.

Best Regards
Marcos
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ddeman not working in activex 3 103
Run video youtube webbrowse 10 62
select query - oracle 16 100
MS Access from Delphi 31 29
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

772 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