Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Amyuni problem
Message
 
To
18/03/2002 11:17:53
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00634089
Message ID:
00634111
Views:
17
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
Map
View

Click here to load this message in the networking platform