New Forum | Previous | Next | (P-PDF) Developers
Topic: Need to Print PDF without Acrobat Exchange.
Conf: (P-PDF) Developers, Msg: 54875
Date: 5/29/2002 05:08 PM
Hello. I am currently using the acrobat control within VB and the FDFACX 1.0 Type Library. Currently viewing a pdf is not a problem. But when I want to Print a pdf, I need Acrobat Exchange. As you may already know, there is a licensing fee, but there isn't on for Acrobat Reader.
The code below would do BUT it doesn't fire the Import Form Data action before it prints so it always prints the wrong data. Does anyone know of a way to print a pdf, importing its fdf without using exchange?
strFileNameToPrint = HOME & "\" & fPDFFileName
strPrinterName = Printer.DeviceName
strDriverName = Printer.DriverName
strPortName = Printer.Port
strCommandline = "C:\Acrobat3 _ \Reader\AcroRD32.exe /t """ + _
strFileNameToPrint + """ """ + _
strPrinterName + """ """ + _
strDriverName + """ """ + _
strPortName + """"
For X = 1 To fNoOfCopies
If (Shell(strCommandline, vbHide) <> 0) Then
MsgBox "Can't open file: " & fPDFFileName