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)
how do I generate a rptdocument
wakaru8
How do I generate a .rptdocument from .rptdesign using BIRT?
Find more posts tagged with
Comments
averma
Hi wakaru8:<br />
You will need to use Report Engine API in order to do that. Create IRunTask to run the report, then use the task to execute the report and save to disk. <br />
<span style='font-family: Courier New'><br />
<em class='bbc'>IReportRunnable design = engine.openReportDesign("C:/temp/MyReport.rptdesign");</em></span><span style='font-family: Courier New'><em class='bbc'><br />
IRunTask task = engine.createRunTask(design); <br />
task.getAppContext().put(EngineConstants.APPCONTEXT_CLASSLOADER_KEY, RunTaskExample.class.getClassLoader()); <br />
task.run("c:/temp/MyReport.rptdocument");<br />
<br />
</em></span> Ashwini
JMaleski
Here is a good snippet for creating a rptdocument:<br />
<a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php#iruntask'>http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php#iruntask</a>
;