It's all about the answers!

Ask a question

programmatic report pdf creation


Ralph Kelkenbe (4612) | asked Oct 28 '08, 7:06 a.m.
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?

3 answers



permanent link
Rafik Jaouani (5.0k16) | answered Oct 29 '08, 8:26 a.m.
JAZZ DEVELOPER
The Jazz Team Server, includes the BIRT reporting engine which could be used to programmatically generate pdf.

permanent link
Ralph Kelkenbe (4612) | answered Oct 31 '08, 9:00 a.m.
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

permanent link
James Moody (3.3k24) | answered Oct 31 '08, 9:33 a.m.
JAZZ DEVELOPER
rkelkenb wrote:
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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.