WINDEV workbook class problem

Startbeitrag von Vinit Sawant am 20.11.2017 10:32

Hi,
I've one code:
xls>>Workbooks>>Open(NomFichierSel)
xls>>Sheets>>Item( 1 )>>Name="Commandes"
xls>>WorkSheets>>Add()
xls>>Sheets>>Item( 1 )>>Name="Caractéristiques"
xls>>ActiveWorkbook>>Save

This code is giving the following error:

Error at line 29 of Click Btn_ExportExcel process.
'Open' Automation method called.
Attempt to invoke method or to read property. Error returned by Automation/ActiveX object:
'Erreur 800A03EC : Office has detected a problem with this file. To help protect your computer this file cannot be opened.'
Attempt to invoke method. Error returned by Automation/ActiveX object:
'Erreur 800A03EC : Office has detected a problem with this file. To help protect your computer this file cannot be opened.'
Attempt to read property. Error returned by Automation/ActiveX object:
'Erreur 800A03EC : Office has detected a problem with this file. To help protect your computer this file cannot be opened.'
Attempt to write property. Error returned by Automation/ActiveX object:
'Erreur 800A03EC : Unable to set the Open property of the Workbooks class'

What maybe the reason for this error?
How to resolve it?

Antworten:

Hi Vinit,

May be TableToExcel() can help you?

von Stefan Bentvelsen - am 21.11.2017 10:05
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.