Excel file in TsBrowse

Excel file in TsBrowse

Postby Jules de Pierre » Thu Apr 06, 2006 1:05 pm

I tried to use the fExcel function as described in TsBrwose V70 notes.

It buils up a Dialog but fails in the part:

@ 66, 36 BUTTON aCtl[ 7 ] PROMPT "&Accept" OF oDlg ;
ACTION ( If( nVer == 2, ;
oBrw:ExcelOle( cFile, lActivate, aCtl[ 9 ], cTitle,, lSave ), ;
oBrw:Excel2( cFile, lActivate, aCtl[ 9 ], cTitle, lSave ) ), ;
oDlg:End(), oBrw:SetFocus() ) ;
FONT oFont SIZE 38, 12 PIXEL

Error message is:
Class: 'ARRAY' has no exported method: EXCELOLE
Args:
[ 1] = C Excelfile
[ 2] = L .T.
[ 3] = O Object
[ 4] = C No Title
[ 5] = U
[ 6] = L .F.

Or:

Class: 'ARRAY' has no exported method: EXCELOLE
Args:
[ 1] = C Excelfile
[ 2] = L .T.
[ 3] = O Object
[ 4] = C No Title
[ 5] = U
[ 6] = L .F.

depending on selecting Excel2 or ExcelOle

I included all the mentioned #Defines

Can anyone give some support?
Thanks,

Jules de Pierre
Jules de Pierre
 
Posts: 21
Joined: Mon Mar 20, 2006 12:48 pm
Location: Netherlands

Re: Excel file in TsBrowse

Postby ask » Thu Apr 06, 2006 2:59 pm

I would use createobject .It's better than the included function .
eg:
local v_Excel:=createobject("excel.application")
v_Excel:Workbooks:Open("c:\temp\a.xls")
v_Excel:Visible:=.t.

Regards

A.S.K


Jules de Pierre wrote:I tried to use the fExcel function as described in TsBrwose V70 notes.

It buils up a Dialog but fails in the part:

@ 66, 36 BUTTON aCtl[ 7 ] PROMPT "&Accept" OF oDlg ;
ACTION ( If( nVer == 2, ;
oBrw:ExcelOle( cFile, lActivate, aCtl[ 9 ], cTitle,, lSave ), ;
oBrw:Excel2( cFile, lActivate, aCtl[ 9 ], cTitle, lSave ) ), ;
oDlg:End(), oBrw:SetFocus() ) ;
FONT oFont SIZE 38, 12 PIXEL

Error message is:
Class: 'ARRAY' has no exported method: EXCELOLE
Args:
[ 1] = C Excelfile
[ 2] = L .T.
[ 3] = O Object
[ 4] = C No Title
[ 5] = U
[ 6] = L .F.

Or:

Class: 'ARRAY' has no exported method: EXCELOLE
Args:
[ 1] = C Excelfile
[ 2] = L .T.
[ 3] = O Object
[ 4] = C No Title
[ 5] = U
[ 6] = L .F.

depending on selecting Excel2 or ExcelOle

I included all the mentioned #Defines

Can anyone give some support?
Thanks,

Jules de Pierre
ask
 
Posts: 99
Joined: Wed Nov 02, 2005 10:40 am

Postby Jules de Pierre » Thu Apr 06, 2006 8:18 pm

O.K.
Thanks A.S.K.

Jules
Jules de Pierre
 
Posts: 21
Joined: Mon Mar 20, 2006 12:48 pm
Location: Netherlands


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests