|
Re: Is EXCEL output compatible with open office? [message #501762 is a reply to message #501669] |
Thu, 03 December 2009 17:21 |
|
Take a look at this bugzilla entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278313
Mr. Munter wrote:
> HI,
>
> I've been trying to output a report to xls and open it in open office
> but all I get is the XLS XML pasted into the spreadsheet. Is the Excel
> output compatible with openoffice as I don't have MS Office? I also
> tried it on google docs but i get an error when it is importing.
>
> I even created a simple test report with a simple table of a few cells
> and setting the output to different office versions but no luck.
>
> This is the code i used to create the xls, maybe i'm missing some
> parameters.
>
> Thanks in advance.
>
> try {
>
> config.getAppContext().put("PARENT_CLASSLOADER", report);
> IReportRunnable design = reportEngine.openReportDesign("
> C:/dev/triental/rebel/rebelYell/web/src/main/java/com/trient
> al/gps/reports/test.rptdesign ");
>
> IRunAndRenderTask task =
> reportEngine.createRunAndRenderTask(design);
> task.getAppContext().put("myObject", report);
>
> //RenderOption options = null;
>
> EXCELRenderOption options = new EXCELRenderOption();
> options.setOfficeVersion("office2003");
> options.setOutputFileName("c:/temp/rebelTest888.xls");
> //options.setOutputStream(os);
> options.setOutputFormat("xls");
>
> task.setRenderOption(options);
> task.run();
> task.close();
|
|
|
Powered by
FUDForum. Page generated in 0.03649 seconds