TPrinter problem

Post Reply
dpesic
Posts: 11
Joined: Thu Jan 21, 2016 8:26 pm

TPrinter problem

Post 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 ?!
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: TPrinter problem

Post by Antonio Linares »

Do they have the same content even if they are using different versions ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TPrinter problem

Post 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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: TPrinter problem

Post by byte-one »

I use free eDocPrintPro Printer-Driver to make PDFs and other formats.
http://www.pdfprinter.at/en/
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TPrinter problem

Post 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?
Regards

G. N. Rao.
Hyderabad, India
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: TPrinter problem

Post 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!?
Regards,
Günther
---------------------------------
office@byte-one.com
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: TPrinter problem

Post 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
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
byte-one
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria
Contact:

Re: TPrinter problem

Post 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
Regards,
Günther
---------------------------------
office@byte-one.com
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: TPrinter problem

Post by hua »

Thank you Günther
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
Post Reply