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)
using actuate.Viewer.downloadReport
pooh
Hi,<br />
<br />
I am trying to export to pdf using the Viewer.downloadReport.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
myViewer = new actuate.Viewer( "myDivContainer" );
var uioptions = new actuate.viewer.UIOptions();
uioptions.enableToolBar(false);
uioptions.enableColumnResize(true);
myyViewer.setUIOptions(uioptions);
myViewer.setReportName("/Home/administrator/ci_reports/table.report.rptdesign" );
myViewer.setParameters({"industry":"<?php echo $sel_subject; ?>"});
myViewer.setSize(800,myViewer.getClientHeight());
// execute the viewer creation
myViewer.submit();
myViewer.downloadReport("pdf","1");
</pre>
<br />
<br />
however nothing happens in the downloadReport call
Find more posts tagged with
Comments
averma
The submit( ) function submits all the asynchronous operations that previous viewer functions prepare and triggers an AJAX request for the report. Report generation takes some time and you will need to wait till the report generation is finished before you call downloadReport. You can achieve this by registering an event handler that gets called on the completion of the report. Take a look at the following example:
http://www.birt-exchange.org/org/devshare/deploying-birt-reports/1399-export-report-with-specified-format-in-your-web-application/
Ashwini
averma
I must add that if all you want to do is download the report in pdf format, you can do this much easily with a single url call:
/executereport.do?__executableName=/MyReport.rptdesign&invokesubmit=true&__format=pdf
Ashwini
pooh
AWESOME! this is exactly what i need
Thanks SO MUCH!