PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WINDEV workbook class problem
WINDEV workbook class problem
Iniciado por guest, 20,nov. 2017 11:32 - 1 respuesta
Publicado el 20,noviembre 2017 - 11: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?
Publicado el 21,noviembre 2017 - 11:05
Hi Vinit,

May be TableToExcel() can help you?