Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Chart to PDF OLE err
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Excel Chart to PDF OLE err
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01060492
Message ID:
01060492
Views:
82
loExcel = createobject("Excel.Application")
loExcel.workbooks.open(GETFILE('xls','Excel To PDF!'))
loExcel.Visible = .t.
loExcel.ActiveWorkbook.Sheets(2).Activate
loExcel.ActivePrinter = "PDF995 on PDF995PORT" && <<<------ Error Here!
loExcel.ActiveWorkbook.Sheets(2).PrintOut
loExcel.quit
RELEASE loExcel, loWorkbook, loSheet
What is the proper syntax to set Active Printer?
Edgar L. Bolton, B.S. B.B.A.
Next
Reply
Map
View

Click here to load this message in the networking platform