Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amyuni problem
Message
 
À
18/03/2002 11:17:53
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
00634089
Message ID:
00634111
Vues:
18
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
Fil
Voir

Click here to load this message in the networking platform