Pdf Printing

Pdf Printing

Postby Bayron » Wed Aug 17, 2011 5:11 am

HI,
Is there a native way to print a PDF file from FWH, and from what version is it possible???

Thanks in advance...
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Pdf Printing

Postby Bayron » Wed Aug 17, 2011 3:36 pm

From Adobe Developer FAQ:
Code: Select all  Expand view
AcroRd32.exe /t path "printername" "drivername" "portname"
Initiates Adobe Reader and prints a file, whose path must be fully specified, while
suppressing the Print dialog box.

The four parameters of the /t option evaluate to path, printername, drivername,
and portname (all strings).

● printername — The name of your printer.
● drivername — Your printer driver’s name, as it appears in your printer’s properties.
● portname — The printer’s port. portname cannot contain any "/" characters; if it
   does, output is routed to the default port for that printer.
 


WaitRun(), could print a PDF file, but how can I get the complete string???
We need to find:

Default printer.... ?? GetDefaultPrinter()
Port Name.... ?? PrnGetPort()
Driver... ?? ???????
Path .... ?? Full path and name of file...

This should help us all to print without the need of any external software.... Unless there is a native way?????

Any ideas Mr. Rao?????
=====>

Bayron Landaverry
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: Pdf Printing

Postby Enrico Maria Giordano » Thu Aug 18, 2011 11:51 am

Bayron wrote:Driver... ?? ???????


Code: Select all  Expand view
PrnGetDrive()


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8712
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Pdf Printing

Postby lenk » Fri Aug 19, 2011 3:59 am

lenk
 
Posts: 2
Joined: Thu Sep 16, 2010 7:16 am


Return to FiveWin for Harbour/xHarbour

Who is online

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