Skip to main content



      Home
Home » Archived » BIRT » Combining custom emitters and report items(Is it possible?)
Combining custom emitters and report items [message #735801] Wed, 12 October 2011 14:30 Go to next message
Eclipse UserFriend
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 15:16 Go to previous messageGo to next message
Eclipse UserFriend
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 16:16 Go to previous messageGo to next message
Eclipse UserFriend
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 11:16 Go to previous message
Eclipse UserFriend
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: Thu Jul 24 17:54:18 EDT 2025

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

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

Back to the top