Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing XLS from VFP OLE Error
Message
From
27/10/2009 17:07:30
Hong Yew
People Quest
Malaysia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Printing XLS from VFP OLE Error
Miscellaneous
Thread ID:
01431759
Message ID:
01431759
Views:
111
Hi all

I tried to print a XLS worksheet but encountered the following error

OLE Dispath Error: Unable to get Printout property of worksheet class

My codes as follows

oXLS=CreateObject('Excel.Application')
oXLS.Workbooks.Open(....)
oXLS.ActiveWorkBook.Sheets(1).Activate
oXLS.ActiveWorkbook.Sheets(1).Printout

Your advice much appreciated

Thanks & Best Regards
Next
Reply
Map
View

Click here to load this message in the networking platform