raspoutine
Programmer
On my screen I have an open Excel sheet which is updated automatically.
My Foxpro application (Ver 6.0) save into a database informations of this Excel sheet every 5 minutes.
I used the following instructions on my form to link the Excel sheet
THISFORM.ADDOBJECT("oExcel","OleXLSheet"
WITH THISFORM.OEXCEL
VA = .WORKSHEETS(1).CELLS(10,1).VALUE
VB = .WORKSHEETS(1).CELLS(11,1).VALUE
ENDWITH
Define class OleXLSheet as OLECONTROL
Oleclass = "Feuille.Excel"
documentfile = 'c:\MUN\WEBSHEET.XLS'
oletypeallowed = 0
ENDDEFINE
The problem is the following:
When I start the program, I always have the screen which invite me to choose the object to link.
However the address of the sheet is defined in the class (documentfile = ‘c:\Mun\WEBSHEET.XLS’)
Second question : How to define the adress of the excel sheet with variable ?
Thanks for help me.
Sorry for my English
My Foxpro application (Ver 6.0) save into a database informations of this Excel sheet every 5 minutes.
I used the following instructions on my form to link the Excel sheet
THISFORM.ADDOBJECT("oExcel","OleXLSheet"
WITH THISFORM.OEXCEL
VA = .WORKSHEETS(1).CELLS(10,1).VALUE
VB = .WORKSHEETS(1).CELLS(11,1).VALUE
ENDWITH
Define class OleXLSheet as OLECONTROL
Oleclass = "Feuille.Excel"
documentfile = 'c:\MUN\WEBSHEET.XLS'
oletypeallowed = 0
ENDDEFINE
The problem is the following:
When I start the program, I always have the screen which invite me to choose the object to link.
However the address of the sheet is defined in the class (documentfile = ‘c:\Mun\WEBSHEET.XLS’)
Second question : How to define the adress of the excel sheet with variable ?
Thanks for help me.
Sorry for my English