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!

Load qrp file and convert it to pdf

Status
Not open for further replies.

auditdi30

Programmer
Feb 25, 2009
39
NO
Hello!

I am using this code, but the pdf file is blank, what is wrong?? If somebody have a better way of doing the convert, please let me know also!

var
rep : tquickrep;
pdffilt : tqrpdfdocumentfilter;
na : string;

begin
na:='faktura.qrp';
application.createform(tutfaktmail,utfaktmail);
rep:=utfaktmail.rapport;
rep.Prepare;
rep.qrprinter.load(na);
rep.qrprinter.ExportToFilter(pdffilt);
utfaktmail.Release;
end;

If I use a preview after the load line, it shows the report, but the pdf file is empty!

Regards
Kåre!
 
Don't use the pdf filter of quickreport. It's worthless. Install PDFCreator and print report to pdf.

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Thank's for the answer, but it is not free. And hopefully is is possible to get it work with my own code!

Regards Kåre!
 
euh, PDFCreator is open source (and thus free).
just print the report to PDFCreator like to a printer.

plain and simple.

/Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Oh, my mistake. I found a different with the same name, and that costs.

If I understand this right, this is a printer(driver), but how can I choose this printer when I want to make a pdf file, and how to give the pdf file a name without any chance for the user to give it another name??

Regards
Kåre!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top