Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Combining custom emitters and report items(Is it possible?)
Combining custom emitters and report items [message #735801] Wed, 12 October 2011 18:30 Go to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
Looking at IContentEmitter interface, it seems to only support emitting built-in report items Sad Is this correct? Is there some way to write an emitter extension and a report item extension which work together?
Re: Combining custom emitters and report items [message #735818 is a reply to message #735801] Wed, 12 October 2011 19:16 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

As part of your new report item you should be setting an output type:

public interface IReportItemPresentation
{

public static int OUTPUT_NONE = 0;
public static int OUTPUT_AS_IMAGE = 1;
public static int OUTPUT_AS_TEXT = 2;
public static int OUTPUT_AS_HTML_TEXT = 3;
public static int OUTPUT_AS_DRAWING = 4;
public static int OUTPUT_AS_CUSTOM = 5;
public static int OUTPUT_AS_IMAGE_WITH_MAP = 6;
public static int OUTPUT_AS_UNKNOWN = 7;


If you set it to HTML_TEXT the startForeign should be called in your
emitter.

Jason



On 10/12/2011 2:30 PM, Alexey Romanov wrote:
> Looking at
> http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.birt.doc.isv%2Fengine%2Fapi%2Forg%2Feclipse%2Fbirt%2Freport%2Fengine%2Femitter%2FIContentEmitter.html
> interface, it seems to only support emitting built-in report items :( Is
> this correct? Is there some way to write an emitter extension and a
> report item extension which work together?
Re: Combining custom emitters and report items [message #735828 is a reply to message #735818] Wed, 12 October 2011 20:16 Go to previous messageGo to next message
Alexey Romanov is currently offline Alexey Romanov
Messages: 263
Registered: May 2010
Senior Member
That's perfect (I expect the same happens with OUTPUT_AS_CUSTOM and OUTPUT_AS_UNKNOWN?)! Though I am not sure what precisely "the PDF writer output the standard content" in IForeignContent documentation means.
Re: Combining custom emitters and report items [message #736102 is a reply to message #735828] Thu, 13 October 2011 15:16 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I believe this means the pdf emitter will just output the text, whereas
html for foreign content can be emitted in html. Have you tried it?

Jason

On 10/12/2011 4:16 PM, Alexey Romanov wrote:
> That's perfect (I expect the same happens with OUTPUT_AS_CUSTOM and
> OUTPUT_AS_UNKNOWN?)! Though I am not sure what precisely "the PDF writer
> output the standard content" in IForeignContent documentation means.
Previous Topic:Line chart- can't show all dates (one value X axis only displays one value on Y axis)
Next Topic:relative address to profiles
Goto Forum:
  


Current Time: Fri Oct 31 11:44:17 GMT 2014

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

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