Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Sending Rendered BIRT Report via Email
Sending Rendered BIRT Report via Email [message #564411] Tue, 21 September 2010 16:06 Go to next message
Eclipse UserFriend
Originally posted by: bbeaulieu2.quillings.com

Does anyone have an example of sending a BIRT report via email while also rendering the report as normal?

I have a situation where I need to gather a list of emails programmatically depending on the contents of the report, and then I need to not only render the report as normal but also send the HTML contents to all of the gathered recipients.

Thanks in advance,

Brad Beaulieu
bbeaulie@us.ibm.com
Re: Sending Rendered BIRT Report via Email [message #626326 is a reply to message #564411] Wed, 22 September 2010 14:27 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Take a look at this example:
http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/991-mailing-birt-reports-as-body-of-email/

Jason
Re: Sending Rendered BIRT Report via Email [message #626572 is a reply to message #626326] Wed, 22 September 2010 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbeaulieu2.quillings.com

Thanks for this, Jason. I did see this, but it only contains the Java classes that send the email. It doesn't include an example report that actually uses those classes. Have you ever come across any example reports that use it?

Brad.

On 9/22/2010 9:27 AM, Jason Weathersby wrote:
> Take a look at this example:
> http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/991-mailing-birt-reports-as-body-of-email/
>
> Jason
Re: Sending Rendered BIRT Report via Email [message #626679 is a reply to message #626326] Wed, 22 September 2010 16:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bbeaulieu2.quillings.com

Ah, I see what this is doing now. It's generating the report through Java APIs and then sending the resulting HTML output via email. I'll look at that more closely to see if it's a viable solution, but do you have any idea if it's possible to do something similar from within the context of a report? The external solution is not ideal because the report is being run from Maximo, and it would be better to have the report itself generate the emails, as opposed to a scheduled batch job external to Maximo.

Brad.

On 9/22/2010 9:27 AM, Jason Weathersby wrote:
> Take a look at this example:
> http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/991-mailing-birt-reports-as-body-of-email/
>
> Jason
Re: Sending Rendered BIRT Report via Email [message #627064 is a reply to message #626679] Wed, 22 September 2010 20:23 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You call call java classes from birt report events, so you may be able
to just call it on the afterRender event.

Jason

On 9/22/2010 12:43 PM, Brad Beaulieu wrote:
> Ah, I see what this is doing now. It's generating the report through
> Java APIs and then sending the resulting HTML output via email. I'll
> look at that more closely to see if it's a viable solution, but do you
> have any idea if it's possible to do something similar from within the
> context of a report? The external solution is not ideal because the
> report is being run from Maximo, and it would be better to have the
> report itself generate the emails, as opposed to a scheduled batch job
> external to Maximo.
>
> Brad.
>
> On 9/22/2010 9:27 AM, Jason Weathersby wrote:
>> Take a look at this example:
>> http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/991-mailing-birt-reports-as-body-of-email/
>>
>>
>> Jason
>
Previous Topic:Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile
Next Topic:BRIT Performance & New Birt Infrastructure
Goto Forum:
  


Current Time: Sat Nov 22 21:26:15 GMT 2014

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

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