Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Emitter file extension(Emitter file extension)
Emitter file extension [message #546827] Wed, 14 July 2010 11:16 Go to next message
moloco  is currently offline moloco Friend
Messages: 7
Registered: March 2010
Junior Member
Hi all. Sorry for my bad EN_en

I made new emitter for ancient DBF format.
I duplicate "cvs/xml examples" emitter "initialize()" method, change format to "dbf" and mimeType to "application/dbase" , but when i try to get report, i receive file without extension ".dbf"


when i'm debug project, i see in "initialize()"
Object value = service.getOption(RenderOption.OUTPUT_STREAM)
and value is CoyoteOutputStream with header "filename=nameWithoutExtension"

What i do wrong?
Re: Emitter file extension [message #546980 is a reply to message #546827] Wed, 14 July 2010 19:20 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Did you add an extension setting to the viewer.properties file in the
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

Jason

On 7/14/2010 7:17 AM, moloco wrote:
> Hi all. Sorry for my bad EN_en
> I made new emitter for ancient DBF format. I duplicate "cvs/xml
> examples" emitter "initialize()" method, change format to "dbf" and
> mimeType to "application/dbase" , but when i try to get report, i
> receive file without extension ".dbf"
>
> when i'm debug project, i see in "initialize()"
> Object value = service.getOption(RenderOption.OUTPUT_STREAM) and value
> is CoyoteOutputStream with header "filename=nameWithoutExtension"
>
> What i do wrong?
Previous Topic:The nested tables with the XML source?
Next Topic:JDBC Mysql connection
Goto Forum:
  


Current Time: Tue Apr 16 11:16:56 GMT 2024

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

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

Back to the top