Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1367
  • 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
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.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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