[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1310
  • Last Modified:

Load a file into quick report

How can I load a file into my quick report?
File is where app. exe is...
0
Bosanac
Asked:
Bosanac
1 Solution
 
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
 
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now