Custom Emitter

Rainer
edited February 11, 2022 in Analytics #1
Hi all,

i am using birt RE API in my own webapp. Everything works fine, reports can be rendered as html, pdf and xls. My customer needs the ability to download table-contents also in csv-format. There are few examples about custom emitters on the web and also in the book by Jason Weathersby and others. I have downloaded the example from actuate website and followed the instructions but unfortunatly i am not able to get the example running. I have read, some changes must be done to the engine api.
Does somebody got an working example on custom emitter to use with BIRT? My environment is BIRT 2.2.2 with eclipse 3.3

Thanks in advance

Rainer

Comments

  • Ireth
    edited December 31, 1969 #2
    I have the same problem with that example.<br />
    I try to add the XML Emitter, but i receive the following error:<br />
    EmitterID org.eclipse.birt.report.engine.emitter.xml for render option is invalid.<br />
    <br />
    I followed the steps described here -> <a class='bbc_url' href='http://www.developer.com/xml/article.php/10929_3732446_6'>Developing an Eclipse BIRT XML Report Rendering Extension</a> and here -><a class='bbc_url' href='http://digiassn.blogspot.com/2007/08/birt-writing-emitter.html'>The Digital Voice: BIRT: Writing an Emitter</a>, but still get the same error.<br />
    <br />
    Any solution?
  • mwilliams
    edited December 31, 1969 #3
    Ireth,<br />
    <br />
    This post in the devShare may help with your XML emitter problem:<br />
    <br />
    <a class='bbc_url' href='http://www.birt-exchange.com/devshare/designing-birt-reports/153-birt-writing-an-xml-emitter/#'>BIRT - Writing an XML emitter - Articles - BIRT Exchange</a>
    Warning No formatter is installed for the format ipb
  • <p>Hi,</p>
    <p> </p>
    <p>Apologies if this has been mentioned already. Just wanted to check how can I get these Devshare Sample reports. As most of the dev share link I click from older posts, the post itself looks like removed.</p>
    <p> </p>
    <p>Could you help me with new link to look out for.</p>
    <p> </p>
    <p>Thanks</p>
  • <p>Hi,</p>
    <p> </p>
    <p>Here are a couple of links, including I believe the one you are looking for:</p>
    <p> </p>
    <p><a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/files/file/61-birt-writing-an-xml-emitter/'>Writing an XML Emitter</a></p>
    <p> </p>
    <p><a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/files/file/331-tutorial-writing-birt-emitters-xml-and-jpeg-emitter/'>Writing BIRT Emitters :XML and JPEG Emitter</a></p>
    <p> </p>
    <p>Hope this helps,</p>
    <p> </p>
    <p>P.</p>
    Warning No formatter is installed for the format ipb
  • <p>Hi, I'm trying to get the output in JPEG format and I used the sample code provided in this link,</p>
    <p>Tutorial : Writing BIRT Emitters: XML and JPEG Emitter.</p>
    <p>But I'm not able to see the images included in the report appearing in output JPEG format.</p>
    <p> </p>
    <p>I found that the reason for this is because both the drawImage() (overloaded) methods are not implemented.</p>
    <p> </p>
    <p>Can you please help me to implement this method ?? I only have the URI, I don't understand how to create the Image object, as the canvas.drawImage() needs the Image and the ImageObserver as input parameters</p>
  • <p>Hi All,</p>
    <p>I further extended Jcomponent and implemented as below,</p>
    <p>public class Jpeg extends JComponent implements IPage</p>
    <p>{</p>
    <p> private Graphics2D canvas;</p>
    <p> private double scale;</p>
    <p> </p>
    <p>public void drawImage(String imageId, byte[] imageData, String extension, int imageX, int imageY, int height, int width, String helpText, Map params) throws Exception</p>
    <p>{</p>
    <p>   Image img = Toolkit.getDefaultTookit().getImage(imageId);</p>
    <p>   this.canvas.drawImage(img, scale(imageX), scale(imageY), scale(width), scale(height), this);</p>
    <p>}</p>
    <p>}</p>
    <p>When I try to debug, I can see the image object loaded and proper values for the position variables. Still I do not see the images on documents.</p>
    <p> </p>
    <p>Can someone please give some pointers on how to proceed with this ??</p>
    <p> </p>
    <p>Thanks for your help in advance !</p>