General information
Category:
COM/DCOM and OLE Automation
Title:
Excel Automation Object throws error
hi,
I am using excel COM component to print my .HTML file, which is generated by the VFP 6.0, by using the following statements.
obExcel = CreateObject("Excel.Application") && Creates Excel Objects
obExcel.WorkBooks.Open("C:\Test.Htm") && Opens the HTML file
obExcel.Dialogs(8).Show && To Activate the Print Dialog
here the first two statement succeeds without any error message. But the third statement makes my machine in a hang mode. My VFP version is 6.0 (06.00.8167.00), and My Excel 2000 version is (9.0.3821 SR-1). If the excel version is 10.x.x or above these commands executes without any interruption and fine. If any solutions please let me know on sajinair76@yahoo.com
Thank you
Saji
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