Bug 424079 - Warning message appear when open the excel file generated by BIRT
Summary: Warning message appear when open the excel file generated by BIRT
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.3.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-15 21:37 EST by Chalet Li CLA
Modified: 2014-12-04 03:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chalet Li CLA 2013-12-15 21:37:38 EST
Hi,
   I saw an old bug 298643 which is likely the same issue, but I don't quite understand the solution.

   Below is what i did with BIRT 4.3.

   I create a Java web project, and copy the jars under "birt-runtime-4_3_1\WebViewerExample\WEB-INF\lib" to my own web lib folder.
   
   I create a thread class to start the report platform,and define a object "IRunAndRenderTask" to run the report design. I use "EXCELRenderOption" as the render option of the task, and set the output format of the option as "xls".

   As above, when I start my web project in tomcat, the task will be invoked automatically, and the excel report file is generated. But when I open the file, the warning message will be shown as "The file format and extension of 'test.xls' don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?".

   I saw some solutions such as modify the registry key, but we can not ask all of our customers to do that. And another solution I found is applying the MIME-TYPE, but where and how can I do it?

   BTW, the office version of my PC is 2007.

   Hopefully there is someone can help me, thanks a lot!