FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Pdf Printing
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Pdf Printing
Posted: Wed Aug 17, 2011 05: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
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: Pdf Printing
Posted: Wed Aug 17, 2011 03:36 PM

From Adobe Developer FAQ:

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
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Pdf Printing
Posted: Thu Aug 18, 2011 11:51 AM
Bayron wrote:Driver... ?? ???????


Code (fw): Select all Collapse
PrnGetDrive()


EMG
Posts: 2
Joined: Thu Sep 16, 2010 07:16 AM
Re: Pdf Printing
Posted: Fri Aug 19, 2011 03:59 AM

Continue the discussion