Error description: Error BASE/1004 No exported method: CELLS
My code was :
Code: Select all
oSheet:Cells(nLine,9):Select()
oSheet:Columns(9):AutoFit()
oSheet:Cells:Font:Bold:="Arial"
oSheet:Cells:Font:Size:=10
oSheet:Cells:Font:Name:=.t.
Thanks
Code: Select all
oSheet:Cells(nLine,9):Select()
oSheet:Columns(9):AutoFit()
oSheet:Cells:Font:Bold:="Arial"
oSheet:Cells:Font:Size:=10
oSheet:Cells:Font:Name:=.t.
Code: Select all
FUNCTION MAIN()
LOCAL oExcel, oSheet
oExcel = CREATEOBJECT( "Excel.Application" )
oExcel:WorkBooks:Add()
oSheet = oExcel:Get( "ActiveSheet" )
oSheet:Cells( 1, 1 ):Value = 10
oSheet:Cells( 2, 1 ):Value = 10
oSheet:Cells( 1, 2 ):Value = 10
oSheet:Cells( 2, 2 ):Value = 10
oSheet:Cells( 2, 3 ):Value = "=SOMMA(A1:A2;B1:B2)"
oExcel:Visible = .T.
RETURN NIL
1) xHarbour: no additional libraries. Harbour: hbole.lib.Ehab Samir Aziz wrote:What is the library affected using createobject with harbour and Xharbour?
What makes the syntax is different from harbour to xharbour ?
What should I do in my batch files to compile createobject ?