-
Hi, I have searched a while for an automated way to invoke a BIRT Report and send the result in an Email as an attached file (pfd / csv). Do anyone know, it this could be done? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The BIRT open source project does not contain a fully-featured report server. Once the BIRT engine is initialized, executing a report is quite easy. For sending emails with SMTP, there are certainly several Java libraries available. However, I don't know, because I use Python for everything except the report generation itself. |
Beta Was this translation helpful? Give feedback.
The BIRT open source project does not contain a fully-featured report server.
But it shouldn't be to difficult to develop your own solution, suited to your needs.
For example, if you want to send a report as an Email attachment, you probably want to control the message subject, body and attachment name, too.
Once the BIRT engine is initialized, executing a report is quite easy.
Take a look at the source file engine\org.eclipse.birt.report.engine\src\org\eclipse\birt\report\engine\api\ReportRunner.java and look for the method runAndRenderReport() there. You can use this code as a template.
For sending emails with SMTP, there are certainly several Java libraries available. However, I don't …