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 next 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
Re: EXCELRenderOption exported xls file cannot open in MS Excel [message #1837681 is a reply to message #1718274] Thu, 04 February 2021 06:24 Go to previous message
Abaddon Tortelinni is currently offline Abaddon TortelinniFriend
Messages: 3
Registered: June 2020
Junior Member
up
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: Mon Apr 29 05:46:32 GMT 2024

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

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

Back to the top