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)
Opening a report in pdf format always
Akshay Khopkar
<p>Hi,</p>
<p> </p>
<p>I am new to ihub, so this question might seems too stupid but I have one rptdesign with me, which generate reports. It is working fine on my local and I am able to generate pdf by passing values of _format and __emitterid in the url.</p>
<p> </p>
<p>But I am unable to do same when report is deployed on ihub environment. I would also like to pass report parameter in URL. How can I do that?</p>
<p> </p>
<p>Also, one thing I observed is Export Format dropdown of Export Content tab is empty. Is it because of this, I am getting format not supported error while setting _format = pdf in url? If so, how can i add support to pdf format in iHub.</p>
<p> </p>
<p>Thanks</p>
Find more posts tagged with
Comments
Clement Wong
<p>Are you generating and then viewing the report? That is, executing the report via the iHub web portal's /executereport.do?</p>
<p> </p>
<p>Or just viewing the report? That is, viewing the report via the iHub web portal's /iv directive?</p>
<p> </p>
<p>Either one, you can append &__format=PDF to URI to get the output in PDF.</p>
<p> </p>
<p> </p>
<p>Now, do you mentioned that you always want to view reports in PDF. Do you end users view reports via the out of the box iHub web portal (Information Console)? If so, you'll need to modify a file within the iHub web portal.</p>
<p> </p>
<p>Or do your end users go through your web portal, and launch a new window? This method will just be appending the &__format=PDF to the URL.</p>
<p> </p>
<p>Or do you embed report content via JSAPI?</p>
Akshay Khopkar
<p>In my case, user will be accessing pdf report through a third web app. So I was going with _format=PDF. I tried it adding it both with executereport.do and iportal/iv.</p>
<p> </p>
<p>I also tried changing iportal/iv to iportal/document. In that case I am getting below response</p>
<p> </p>
<p><html><body><br>
<font id='idExceptionErrorPage' color="red"><br>
Unsupported format.<br>
</font></p>
<p></body></html></p>
<p> </p>
<p>Also, when I am passing report parameters in URL, system is not accepting them.</p>
Clement Wong
<p>It's two underscores before "format" (&__format=pdf).</p>
<p> </p>
<p>For example:</p>
<pre class="_prettyXprint">
http://ihub:8700/iportal/executereport.do?__locale=en_US&__vp=Default Volume&volume=Default Volume&closex=true&__executableName=%2FPublic%2FUnshipped Orders 1H2013.rptdesign%3B1&__requesttype=immediate&__wait=True&__format=pdf</pre>
Akshay Khopkar
<p>Yes. I tried. I am doing every thing as mentioned in -</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
http://blogs.opentext.com/introducing-birt-ihub-f-type-integrating-into-applications/'>http://blogs.opentext.com/introducing-birt-ihub-f-type-integrating-into-applications/</a></p>
;
<p> </p>
<p>is format pdf is supported in iHub by default, or do I need to add some additional dependencies to make it work?</p>