Como Grabar datos en planilla excel existente

Como Grabar datos en planilla excel existente

Postby Databaselab2002 » Thu Aug 02, 2007 8:55 pm

Estimados Colegas


Como puedo Graba datos en determinadas celdas de un un planilla
existente, alguien tendria algun ejemplo sencillo

desde ya muchisimas gracias
Fabian
databaselab2002@yahoo.com.ar
Databaselab2002
 
Posts: 142
Joined: Sun Oct 09, 2005 1:36 am

Postby sysctrl2 » Fri Aug 03, 2007 2:01 am

Fabian lo puedes hacer con la texcel,

de la sig. forma.

cFile := cFilePath( GetModuleFileName( GetInstance() )) + "planilla.xls"

oExcel := TExcelScript():New()
oExcel:Open( cFile )

oExcel:oSheet:Cells( nRow, 01 ):Value = cValor1
oExcel:oSheet:Cells( nRow, 02 ):Value = cValor2
oExcel:save()
oExcel:End( .f. )
oExcel := NIL


Saludos.
Cesar Cortes Cruz
SysCtrl Software
Mexico

' Sin +- FWH es mejor "
User avatar
sysctrl2
 
Posts: 1004
Joined: Mon Feb 05, 2007 7:15 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 88 guests