Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
[BIRT 2.3.1 Runtime] How to generate 1 report in several formats at the same times?
Bouillou32
Hi,
I am using "genReport.bat" file to generate my BIRT reports in formats XLS and PDF. To call this command file, I created another .bat with this content:
SET BIRT_HOME=D:birt-runtime-2_3_1
SET OD=C:BIRT_Reports
CALL genReport -f XLS -o %OD%RejectAnalyzerFinal_MU_%nDateFrom%_%nDateTo%.xls -p "DateFrom=%nDateFrom%" -p "DateTo=%nDateTo%" RejectAnalyzerFinal.rptdesign
CALL genReport -f PDF -o %OD%RejectAnalyzerFinal_MU_%nDateFrom%_%nDateTo%.pdf -p "DateFrom=%nDateFrom%" -p "DateTo=%nDateTo%" RejectAnalyzerFinal.rptdesign
I would like to know how to specify in the command line to generate both formats (XLS and PDF) at the same time?
Any idea?
Thanks
Find more posts tagged with
Comments
JasonW
The report runner test program does not support doing this. You could write your own RE API class that runs the report to a rptdocument and then uses the rpt document to render to all the output formats. This would prevent queries from rerunning.
Jason
Bouillou32
Thanks for your reply Jason, I am going to investigate this solution.
Regards
JasonW
Take a look at the following pages:<br />
<br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php'>Report
Engine API</a><br />
<a class='bbc_url' href='
http://wiki.eclipse.org/Integration_Examples_(BIRT)'>Integration
Examples (BIRT) - Eclipsepedia</a><br />
<br />
Jason