General information
Category:
Third party products
Yes. I defined a new printer via the printers option. Probably not doing this correctly either. Gave it the name 'MyPDFprinter'. Set the 'port' to FILE. Had to select a printer manufacturer. I no longer get the OLE error but i dont get a PDF either. I get prompted for a filename when "printing". And it does not create a PDF.
DO pdfgen WITH "authors2","C:\temp\pdf3.pdf"
And PDFGEN looks like:
#DEFINE pdf_NoPrompt 1
#DEFINE pdf_UseFileName 2
#DEFINE pdf_Concatenate 4
#DEFINE pdf_DisableCompression 8
#DEFINE pdf_EmbedFonts 16
#DEFINE pdf_BroadcastMessages
lParameters tcReportName, tcFileName
set step on
oPDFPrinter = CREATEOBJECT( "CDINTF.CDINTF")
oPDFPrinter.PDFDriverInit( "MyPDFprinter")
oPDFPrinter.DefaultFileName = tcFileName
oPDFPrinter.resolution = 1200
oPDFPrinter.SetDefaultConfig()
oPDFPrinter.SetDefaultPrinter()
set printer to name "MyPDFprinter"
REPORT FORM ( tcReportName) NOEJECT NOCONSOLE TO PRINTER
>Do you have rights to install an printer from the user login that you are running this code?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only