Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel OLE error 0X800A01A8
Message
Information générale
Forum:
Microsoft Office
Catégorie:
Excel
Divers
Thread ID:
01303138
Message ID:
01303242
Vues:
19
>I have a FoxPro 7.x application that creates Excel files to hold report output. It uses the standard
>
>
>oExcel = CREATEOBJECT("Excel.Application")
>
>
>to instantiate the object, then creates new worksheets, populates them, formats them, etc. using standard Excel automation functions. This is all working fine. Some of these reports are rather lengthy and it can take several minutes to generate the Excel file. During this time, if the user goes to Windows Explorer and double-clicks another Excel file, Windows sends it to the same Excel instance that my FoxPro application is using. Again, this is fine so far. But then if the user closes the entire Excel application rather than closing just the newly opened workbook, it generates an error as follows:
>
>OLE Error Code 0X800A01A8: Unknown COM Status Code
>System Error #1426
>
>Is there a way to prevent this from happening? Is there some setting I can use when I create the Excel object that tells it not to accept other workbooks? Or is there some command I can issue that would tell Windows to always open another Excel instance rather than sending the workbook to the most recently opened Excel instance?
>
>Yes, I know I could tell my users to always open Excel from the Windows start menu while they are working with my program, but users have a tendency to forget.
>
>Thank you in advance!
>Dale Beitz
>Michigan Health & Hospital Association

I think you may have better chances for the answer on this question if you ask in VFP forum.

I ran few google searches on the topic and it looks like this problem is not easy solvable

http://www.experts-exchange.com/Applications/MS_Office/Excel/Q_21685026.html

Anyway, you may try to catch the event of closing the Excel in your application by implementing the Event Handler.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform