TPrinter problem

TPrinter problem

Postby dpesic » Sat Apr 22, 2017 1: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 ?!
dpesic
 
Posts: 11
Joined: Thu Jan 21, 2016 8:26 pm

Re: TPrinter problem

Postby Antonio Linares » Mon Apr 24, 2017 4:08 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41208
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TPrinter problem

Postby nageswaragunupudi » Wed Apr 26, 2017 3: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
User avatar
nageswaragunupudi
 
Posts: 10208
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TPrinter problem

Postby byte-one » Wed Apr 26, 2017 7: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: TPrinter problem

Postby nageswaragunupudi » Wed Apr 26, 2017 7: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
User avatar
nageswaragunupudi
 
Posts: 10208
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: TPrinter problem

Postby byte-one » Wed Apr 26, 2017 7: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: TPrinter problem

Postby hua » Tue Nov 28, 2017 3: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
hua
 
Posts: 1034
Joined: Fri Oct 28, 2005 2:27 am

Re: TPrinter problem

Postby byte-one » 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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: TPrinter problem

Postby hua » Wed Nov 29, 2017 2:20 am

Thank you Günther
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1034
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 18 guests