[go: up one dir, main page]

Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » EXCELRenderOption exported xls file cannot open in MS Excel (EXCELRenderOption exported xls file cannot open in MS Excel)
EXCELRenderOption exported xls file cannot open in MS Excel [message #1718274] Tue, 22 December 2015 03:10 Go to previous message
wei zhang is currently offline wei zhangFriend
Messages: 1
Registered: December 2015
Junior Member
hi all,
I am newbie.
Now i use EXCELRenderOption to export xls(Excel2003 format) file,
the file can be exported, but when I use MS Excel to open the xls file,
some warning message occurred from MS Excel.

Warning message like this:
File format and extension name does not match. Files may have been corrupted or not safe. Please do not open unless you trust the source. Do you still want to open it?

When I click "Yes" bottun, the file can be opened normally。

Here is the source code:
IReportRunnable design = engine.openReportDesign("XXX/new_report.rptdesign");
IRunAndRenderTask task = engine.createRunAndRenderTask(design);
EXCELRenderOption options = new EXCELRenderOption();
options.setOutputFormat("xls");
options.setWrappingText(true);
options.setOutputFileName("D:/output.xls");
task.setRenderOption(options);
task.run();

Any hints will be appreciated.
THX
Wei
 
Read Message
Read Message
Previous Topic:How to create an aggregate from an aggregate in a sub-group?
Next Topic:Showing data from a shift that covers two days
Goto Forum:
  


Current Time: Thu Dec 12 18:50:34 GMT 2024

Powered by FUDForum. Page generated in 0.03075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top