In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TO EXCEL

Foro de Xailer profesional en español
Responder
Daniel Pechir
Mensajes: 197
Registrado: Vie Mar 15, 2013 12:32 am

TO EXCEL

Mensaje por Daniel Pechir »

HOLA BUEN DÍA

PODRÍAN ORIENTARME PARA, DESDE FAST REPORT EXPORTAR EL REPORTE A EXCEL
TENGO ENTENDIDO QUE ES UN " TO EXCEL " PERO NO ENCUENTRO LA SINTAXIS COMPLETA DEL COMANDO

GRACIAS

DANIEL PECHIR
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9439
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: TO EXCEL

Mensaje por ignacio »

Échele un vistazo al método TFastReport:DoExport.

Saludos
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Daniel Pechir
Mensajes: 197
Registrado: Vie Mar 15, 2013 12:32 am

Re: TO EXCEL

Mensaje por Daniel Pechir »

HOLA IGNACIO

GRACIAS POR SU APOYO

EL CODIGO SIGUIENTE MARCA ERROR

WITH OBJECT oFRcat:= TFastReport():New()
:cDllPath := "\DapeBaseSQL"
:cFRLicense := "xxxxxxx"
:cXALicense := "xxxxxxx"
:Create()
:cLanguage := "Spanish"
:AddDataSet( "DATA", ::oConsu )
:cFileName := '\Reportes\HistVenta.fr3'
:ShowReport()

:DoExport(XLSEXPORT)

:End()
END

ERROR : Variable No existe XLSEXPORT

SALUDOS
Daniel Pechir
Mensajes: 197
Registrado: Vie Mar 15, 2013 12:32 am

Re: TO EXCEL

Mensaje por Daniel Pechir »

Con este código funcionó

WITH OBJECT oFRcat := TFastReport():New()
:cDllPath := "\DapeBaseSQL"
:cFRLicense := "xxxx"
:cXALicense := "xxxx"
:Create()
:cLanguage := "Spanish"
:AddDataSet( "DATA", ::oConsu )
:cFileName := '\Reportes\HistVenta.fr3'
:ShowReport()
:DoExport( "XMLEXPORT", "\Escritorio\HistVenta.xlsx" )
:End()
END

Muchas gracias

Daniel Pechir
Responder