programmatic report pdf creation
Hello i'm wondering if there is a way to export a existing report programmatically to pdf.
So thats how i would like to do it.
I'm using a plugin that runs as service task on the jazz server. So every 24h this service will be called. Now i would like to integrate the functionality to export a existing birt report to a folder onto the jazz server, for example to a pdf type.
Do you offer a interface in your api to access the birt functionality?
So thats how i would like to do it.
I'm using a plugin that runs as service task on the jazz server. So every 24h this service will be called. Now i would like to integrate the functionality to export a existing birt report to a folder onto the jazz server, for example to a pdf type.
Do you offer a interface in your api to access the birt functionality?
3 answers
rkelkenb wrote:
Please note that what I'm describing to you isn't committed API - that
is, it could change in future versions.
Having said that, we do this today and I'll describe how we do it. Take
a look at the class IReportViewerService. It's a servlet that you can
call which returns a rendered report in some format. At the top of
ReportViewerService are some parameters which you could use to specify
pdf output. (Specifically, append "&__format=pdf" to the URL). You'll
also need to pass the __reportUUID or __queryUUID (depending on whether
you're passing an IReportDescriptor or an IReportQueryDescriptor,
respectively). If you're passing an IReportDescriptor, you'll also need
to pass any parameter name/value pairs. __projectAreaUUID is also
mandatory. The service will give you back a stream of bytes with the
content type of "application/pdf".
Hope this gets you started, let me know if you have any questions.
james
thank you for the answer of my post, i'm wondering if you are using a
special method on the reports to access the birt functionallity to
export existing reports
Please note that what I'm describing to you isn't committed API - that
is, it could change in future versions.
Having said that, we do this today and I'll describe how we do it. Take
a look at the class IReportViewerService. It's a servlet that you can
call which returns a rendered report in some format. At the top of
ReportViewerService are some parameters which you could use to specify
pdf output. (Specifically, append "&__format=pdf" to the URL). You'll
also need to pass the __reportUUID or __queryUUID (depending on whether
you're passing an IReportDescriptor or an IReportQueryDescriptor,
respectively). If you're passing an IReportDescriptor, you'll also need
to pass any parameter name/value pairs. __projectAreaUUID is also
mandatory. The service will give you back a stream of bytes with the
content type of "application/pdf".
Hope this gets you started, let me know if you have any questions.
james