Community
Participate
Working Groups
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!