Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
save birt reports in different formats based upon user selection
Migrateduser
<p>I have set up my application such that a user chooses their desired file format they would like to revise a report. I finally got the report generated and formatted good enough for now. But I still have it hard coded to save as a ".rptdesign". This worked fine up till now since I could just view this as pdf or odt in eclipse. But now I would like to let my code change what file format to save in.</p>
<pre class="_prettyXprint _lang-">
designHandle.saveAs("path/to/report/sample.rptdesign");
designHandle.close();
</pre>
<p>above is how my code saves the report now. I tried changing .rptdesign to .pdf and .doc but nether worked. .pdf created a file that could not open and .doc was a file of xml that can barely be read.</p>
<p> </p>
<p>when I select these formats in the view report dropdown it looks fine.</p>
<p> </p>
<p>dose anyone know how to save my reports as different file formats?</p>
Find more posts tagged with
Comments
There are no comments yet