gracias
function pruebaxls()
local oExcel, oBook, oSheet, oRange
oExcel := CreateObject( "excel.application" )
oBook := oExcel:Workbooks:Add()
oSheet := oBook:Worksheets( 1 )
oSheet:Cells( 1,1 ):Value = "Listado General de Articulos (España)"
oRange:=oSheet:Range("A1:E1")
oRange:MergeCells:= .T.
oRange:HorizontalAlignment:= xlCenter
oSheet:Range( "A3" ):Value = "Código"
oSheet:Range( "B3" ):Value = "Descripción"
oSheet:Range( "C3" ):Value = "Fecha U.C."
oSheet:Range( "D3" ):Value = "P.U.C."
oSheet:Range( "E3" ):Value = "Importe"
oSheet:Columns(2):ColumnWidth := 20
oExcel:Visible := .T.
oExcel := NIL
RETURN NILEn la salida que obtengo
Las eñes las las pone como +- Listado General de Articulos (Espa±a)
etc.