Solved

Load a file into quick report

Posted on 2004-03-22
3
1,101 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 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