General information
Category:
COM/DCOM and OLE Automation
Title:
Printing XLS from VFP OLE Error
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only