Try to compile and execute the testole.prg example that is under
contrib\hbwin\tests folder.
I use it and it works.
Qatan
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users
Hi All,I know it is a old question but it took me a while to figure it out, so the proper syntax may help others in future:IF ( oExcel := win_oleCreateObject( "Excel.Application" ) ) != NILoWorkBook := oExcel:WorkBooks:open( "c:/MyProg/foo.xls")
oAS := oExcel:ActiveSheet()? oAS:Cells( 1, 1 ):Value
oExcel:WorkBooks:Close()oExcel:Quit()endifHappy HackingKarl
Yes. I made a simple class that supports both Excel and Calc. For instance:
oDoc := OLE_Calc ("OO", "test") // or OLE_Calc ("MS", "test")
x := oDoc:GetCell ("A1")
oDoc:PutCell ("A7", 123)
oDoc:PutCellXY (1, 1, "Some value")
oDoc:CloseTable()
regards, NB
--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.