I'm using SalReportPrintToFile() to print a report as PDF.
The QRP is 260 kB in size, no bitmaps or anything else in it, only a few textfields and lines.
It has one page:
The PDF file created by SalReportPrintToFile has a size of about 25 MB (!!) - what is far from any reality.
Printing this PDF again with a PDF printer results in a PDF of 70 kB.
I'm using TD6.0-sp8
We produce a lot of documents, so a filesize of 25MB per document will fill up the customers disk within a few days ...
What can I do? Any hints? Anyone else encountered this problem?
Thanks in advance
thanks for your reply. I was not in office a few days so I saw it just now.
I thought, SalReportPrintToFileEx() only produces RTF and ASCII, but not PDF, because the headline of the help topic says "Prints a report to a file in RTF format or in ASCII text format."
Therefore, I've never read the further details of the help for SalReportPrintToFileEx().
In result of your hint I took a closer look and further down in the help is stated that you can also do a "nFormat = 2" for PDF.
Without your hint I would never had found this
Thank you very much, I will give it a try now!
using SalReportPrintToFileEx results in a PDF with 35kB - perfect
Again many thanks for your help
Who is online
Users browsing this forum: [Ccbot], ajaybhattnagar21 and 0 guests