FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TPrinter problem
Posts: 11
Joined: Thu Jan 21, 2016 08:26 PM
TPrinter problem
Posted: Sat Apr 22, 2017 01:08 PM
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 ?!
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: TPrinter problem
Posted: Mon Apr 24, 2017 04:08 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TPrinter problem
Posted: Wed Apr 26, 2017 03:37 AM

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
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: TPrinter problem
Posted: Wed Apr 26, 2017 07:24 AM
I use free eDocPrintPro Printer-Driver to make PDFs and other formats.
http://www.pdfprinter.at/en/
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TPrinter problem
Posted: Wed Apr 26, 2017 07:43 AM
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
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: TPrinter problem
Posted: Wed Apr 26, 2017 07:56 AM

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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: TPrinter problem
Posted: Tue Nov 28, 2017 03:33 AM
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.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: TPrinter problem
Posted: Tue Nov 28, 2017 10:14 AM
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
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: TPrinter problem
Posted: Wed Nov 29, 2017 02:20 AM

Thank you Günther

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion