Information générale
Catégorie:
Produits tierce partie
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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement