Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excell automation
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01531207
Message ID:
01531210
Views:
84
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I have a code in my app that opens an Excel file (for printing) and it works for many customers. But this one customer reports a problem. The code that opens the file is as following:
>
>
>oExcel = CREATEOBJECT("Excel.Application")
>IF type( "oExcel" ) = "O" and !isnull( oExcel )		
>    TRY
>         oWorkBook = oExcel.Workbooks.open(ALLTRIM(tcDocumentName))
>         oWorkBook.Printout()
>CATCH TO oErrorObj
>*-- show error
>FINALLY 
>    oExcel.Quit()
>ENDTRY
>
>
>The error number caught by the try/catch is Ole IDispatch 1429. The version of the installed Office is 2007 SP2.
>
>What could be causing this error? TIA.


The error from Automation is ALWAYS (OK, almost ALWAYS) 1429 :-)
What is the other part of the error?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform