PDA

View Full Version : CR9 Output to Excel file



Pepe
18-Mar-2005, 01:39 PM
Hi,

I need the output of a CR report to go to a file in Excel format.

Previsualizing it and sending it to "Excel 97-2000 (data only)" works fine.

Now I would like to do that but without previsualizing it. To achieve
that within the OnStartPrinting procedure of the CR oject I have:

set output_destination to crw_print_to_file
set exportfilename to "sample.xls"
set exportformatType to CRW_xls5type


When I run the application gives a failure error and closes the application.

Questions:

1-Is the CRW_xls5Type format correct for "Excel 97-2000 (data only)"?
2-Is the sintaxis wrong or why does it fail?

TIA
--
José Guimarães [ pg@moose-software.com ]
Director
Moose Software
Data Access Partner Spain & Portugal
http://www.moose-software.com