Load a file into quick report

How can I load a file into my quick report?
File is where app. exe is...
BosanacAsked:
Who is Participating?
 
marcoszorrillaCommented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
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
 
BosanacAuthor Commented:
No,I have a file and would like to print it with quick report...
Classic *.txt file....
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.