Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Sending reports with graphics via email
Sending reports with graphics via email [message #535519] Mon, 24 May 2010 09:01 Go to next message
Rafal is currently offline RafalFriend
Messages: 33
Registered: July 2009
Member
Hi,
I'm using linux to send my reports via email. In cron I have commands
to download report with wget and then I redirect the output to email
program with html option enabled. It works fine, but charts are not
sent. Have anyone solved this problem yet? I think the best solution
would be to encode graphics into html source, but haven't found any
simple program that could run from command line. Any suggestions would
be much appreciated.

Rafal
Re: Sending reports with graphics via email [message #535571 is a reply to message #535519] Mon, 24 May 2010 15:54 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Take a look at this page:
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.p hp#emitterconfiguration

It describes how BIRT handles images. Essentially there are two
implementations of the IHTMLImageHandler class. One for file system
links and one for web use. If you use the HTMLCompletImageHandler
(which is the default) you should be able to set your image directory
to ./ which will create the images in the same directory as the report
html, which should allow you to send the html and the images in an
email. If you do not like this approach you could always implement your
own IHTMLImageHandler class to decide how you want to handle the images
(ie embedded them in a data html element base64 encoded).

Jason

On 5/24/2010 5:01 AM, Rafal Wojtowicz wrote:
> Hi,
> I'm using linux to send my reports via email. In cron I have commands to
> download report with wget and then I redirect the output to email
> program with html option enabled. It works fine, but charts are not
> sent. Have anyone solved this problem yet? I think the best solution
> would be to encode graphics into html source, but haven't found any
> simple program that could run from command line. Any suggestions would
> be much appreciated.
>
> Rafal
Previous Topic:Eclipse Preview Viewer JNDI Question
Next Topic:URL Parameters
Goto Forum:
  


Current Time: Fri Apr 26 03:07:21 GMT 2024

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

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

Back to the top