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 can I generate a report in ms word format by code?
boj
I need to prepare reports in ms word format by code for an app. I know BIRT does it through its editor. The API has classes for HTML, PDF and XLS (excel) but not for doc. Any idea?
Thx
Find more posts tagged with
Comments
Virgil Dodson
Hi boj,<br />
<br />
Take a look at the examples at <a class='bbc_url' href='
http://www.birt-exchange.com/devshare/deploying-birt-reports/568-execute-birt-reports-from-java-class/#description'>Execute
BIRT Reports from Java class - Designs & Code - BIRT Exchange</a><br />
<br />
...and then replace the RenderOptions section to look like:<br />
<br />
IRenderOption options = new RenderOption();<br />
options.setOutputFormat("doc");<br />
options.setOutputFileName(outputFile);<br />
task.setRenderOption(options);
boj
Thxs, It worked fine... I have also tried to generate excel and powerpoint and als worked...