Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pdf generation with Quickreport

Status
Not open for further replies.

yanis97

Programmer
Jan 26, 2004
22
0
0
FR
Hi;

I use the version 3.62 of the QuickReport and I would like to generate
direclty of the pdf files from of the Qrp files stored in a database in
using the "TQRPDFDocumentFilter" module.
But do not works (it does not pass anything the whole)
My code is :

procedure TForm1.Button1Click(Sender: TObject);
var
FichierPDF : TQRPDFDocumentFilter;
qrp : TQRPrinter;
ApplicationPath : string;
begin
ApplicationPath := ExtractFilePath(Application.ExeName);
FichierPDF := TQRPDFDocumentFilter.Create(ApplicationPath
+'Report.pdf');
qrp := TQRPrinter.Create(nil);
qrp.Load('D:\Temp\etat.qrp');
qrp.ExportToFilter(FichierPDF);
FichierPDF .free;
end;

Regards;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top