Page 1 of 1

TPrinter problem

Posted: Sat Apr 22, 2017 1:08 pm
by dpesic
I have such problem, if report is printed to .pdf directly it creates file difrrent than if I use option Export to PDF from preview menu.
Its same report just printer 2 times with out without preview mode.

With preview mode it create file in my example with size: (1,503,600 bytes test-a.pdf) and as far I can see is %PDF-1.3 version
but if I use preview mode and export it create five with size: (203,198bytes test-b.pdf) and its %PDF-1.5 version ?!

Re: TPrinter problem

Posted: Mon Apr 24, 2017 4:08 pm
by Antonio Linares
Do they have the same content even if they are using different versions ?

Re: TPrinter problem

Posted: Wed Apr 26, 2017 3:37 am
by nageswaragunupudi
When we export to PDF from Preview, the preview class first checks if MSWord is installed. If installed, the document is first exported to Word and then saved as PDF. This produces PDF with high quality and very small size.

In case Word is not installed, then the preview class uses the FWH built-in function FWSavePreviewToPDF(). This function does the job but is not efficient like MS Word and produces a file with large size.

When we directly export from Printer/Report, directly the inbuilt function FWSavePreviewToPDF() is used, producing a file larger than what Word would have produced.

This explains the reason for the different sizes and versions.

This also raises a question why can not exporting to PDF directly from Printer/Report can also adopt the same approach. Answer is yes. But this takes some time and we shall try to provide this in future versions.

Re: TPrinter problem

Posted: Wed Apr 26, 2017 7:24 am
by byte-one
I use free eDocPrintPro Printer-Driver to make PDFs and other formats.
http://www.pdfprinter.at/en/

Re: TPrinter problem

Posted: Wed Apr 26, 2017 7:43 am
by nageswaragunupudi
byte-one wrote:I use free eDocPrintPro Printer-Driver to make PDFs and other formats.
http://www.pdfprinter.at/en/
Doesn't this require installation on all client PCs ?
Or are you using SDK/DLL integrated into your application?

Re: TPrinter problem

Posted: Wed Apr 26, 2017 7:56 am
by byte-one
For now i use installation on all clients. But every Printer-Driver lets install on the LAN for access from all clients!?

Re: TPrinter problem

Posted: Tue Nov 28, 2017 3:33 am
by hua
byte-one wrote:I use free eDocPrintPro Printer-Driver to make PDFs and other formats.
http://www.pdfprinter.at/en/
Hi Günther,
How to use eDocPrintPRo to print to pdf silently? I mean, how do we programmatically assign the filename and output path?

TIA

Re: TPrinter problem

Posted: Tue Nov 28, 2017 10:14 am
by byte-one
hua, see on the picture the settings: %DOCNAME% as filename. Also the path can set with %-variables.
http://byte-one.com/edoc.png

Re: TPrinter problem

Posted: Wed Nov 29, 2017 2:20 am
by hua
Thank you Günther