Exporting a report to different formats
Hi, i have a very heavy report... takes a few minutes to generate and need
to export it to PDF, then Excel and then HTML automatically.
I'm using Waler's ExtraDevices and doing the following code:
//Genera el reporte en PDF
rptInv.DeviceType := 'PDFFile';
rptInv.TextFileName := 'PDF_Report';
rptInv.Print;
//Genera el reporte en Excel
rptInv.DeviceType := 'ExcelFile';
rptInv.TextFileName := 'XLS_Report';
rptInv.Print;
The report already has CachePages set to true but it seams that each time i
call the print method it traverses the data again. Is there a way to prevent
it and use the already cached data?
thanks
--
Guillermo Casta?o A.
www.GrupoMillennium.com
to export it to PDF, then Excel and then HTML automatically.
I'm using Waler's ExtraDevices and doing the following code:
//Genera el reporte en PDF
rptInv.DeviceType := 'PDFFile';
rptInv.TextFileName := 'PDF_Report';
rptInv.Print;
//Genera el reporte en Excel
rptInv.DeviceType := 'ExcelFile';
rptInv.TextFileName := 'XLS_Report';
rptInv.Print;
The report already has CachePages set to true but it seams that each time i
call the print method it traverses the data again. Is there a way to prevent
it and use the already cached data?
thanks
--
Guillermo Casta?o A.
www.GrupoMillennium.com
This discussion has been closed.
Comments
It is possible to print to multiple devices at once by creating each one and
calling Report.PrintToDevices. The following example shows how to print to
multiple printers at the same time. You will need to use the same technique
to print to multiple export devices at the same time.
http://www.digital-metaphors.com/tips/PrintToMultiplePrinters.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com