Página 1 de 1

Win_Ole Error, Dos Error Code: -2147352567

Publicado: Lun Oct 20, 2014 9:24 am
por Milan Mehta
My following lines of code give me error :
Code :
oExcel := Win_OLECreateObject( "Excel.Application" )
oExcel:Workbooks:Open("abc.xls")
::oExcel:Visible := .T.
oAS := oExcel:ActiveSheet()
oAS:Cells ( 1, 3 ):Interior:ColorIndex := 7
Error :
Subsystem Call: WINOLE
System Code: 1006
Default Status: .F.
Description: (0x800A03EC)
Operation: _COLORINDEX
Arguments: [ 1] = Type: N Val: 7
Involved File:
Dos Error Code: -2147352567
Any idea, What am I doing wrong ?
TIA
Milan.

Win_Ole Error, Dos Error Code: -2147352567

Publicado: Lun Oct 20, 2014 9:38 am
por jfgimenez
Milan,
> My following lines of code give me error :
>
> Code :
> oExcel := Win_OLECreateObject( "Excel.Application" )
> oExcel:Workbooks:Open("abc.xls")
> ::oExcel:Visible := .T.
> oAS := oExcel:ActiveSheet()
> oAS:Cells ( 1, 3 ):Interior:ColorIndex := 7
>
> Error :
> Subsystem Call: WINOLE
> System Code: 1006
> Default Status: .F.
> Description: (0x800A03EC)
> Operation: _COLORINDEX
> Arguments: [ 1] = Type: N Val: 7
> Involved File: Dos Error Code: -2147352567
>
> Any idea, What am I doing wrong ?
this error report is not from a Xailer application.
Please, test it from a Xailer program, and use TOleAuto() instead of
Win_OLECreateObject()
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info