Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » xls output and wrong file format on Excel 2007
xls output and wrong file format on Excel 2007 [message #764481] Mon, 12 December 2011 09:21 Go to next message
Nicklas Karlsson is currently offline Nicklas KarlssonFriend
Messages: 34
Registered: July 2009
Member
Hi,

I read some topics on the "The file you are trying to open is of different format..." and I tried to make a filename-generator-impl that would produce .xlsx files but that didn't help either. Is there any way to control the response content-type headers?
Re: xls output and wrong file format on Excel 2007 [message #764699 is a reply to message #764481] Mon, 12 December 2011 17:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Nicklas,

The content type is set in the plugin.xml for the emitter and the
extension used is set in the viewer.properties for the deployed viewer:


# [EXTENSION SETTING]
viewer.extension.html=html
viewer.extension.pdf=pdf
viewer.extension.postscript=ps
viewer.extension.doc=doc
viewer.extension.xls=xls
viewer.extension.ppt=ppt
viewer.extension.ods=ods
viewer.extension.odt=odt
viewer.extension.odp=odp

You could change both but I do not think it will work because the xls
emitter does not generate xlsx files.

Jason

On 12/12/2011 4:21 AM, Nicklas Karlsson wrote:
> Hi,
>
> I read some topics on the "The file you are trying to open is of
> different format..." and I tried to make a filename-generator-impl that
> would produce .xlsx files but that didn't help either. Is there any way
> to control the response content-type headers?
Re: xls output and wrong file format on Excel 2007 [message #764946 is a reply to message #764699] Tue, 13 December 2011 06:26 Go to previous messageGo to next message
Nicklas Karlsson is currently offline Nicklas KarlssonFriend
Messages: 34
Registered: July 2009
Member
It doesn't? Strange, wonder why Excel is complaining then if the xls produced is an xls?

Thanks, I'll see what the xml tuning produces...
Re: xls output and wrong file format on Excel 2007 [message #765237 is a reply to message #764946] Tue, 13 December 2011 17:19 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Nicklas,

It is producing a 2003 version of the xml format for excel.

Have a look at this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267988

You could also look at the tribix emitters or this entry
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1421-native-excel-emitter-plugin-for-birt/


Jason

On 12/13/2011 1:26 AM, Nicklas Karlsson wrote:
> It doesn't? Strange, wonder why Excel is complaining then if the xls
> produced is an xls?
>
> Thanks, I'll see what the xml tuning produces...
Previous Topic:Missing hyperlink when report loaded from hyperlink
Next Topic:Output issue with Flat file
Goto Forum:
  


Current Time: Fri Mar 29 10:38:29 GMT 2024

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

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

Back to the top