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
How to download a pdf or open a pdf in new tab
Migrateduser
<p>Hi All,</p><p> </p><p>i have integrated birt 4.2.2 in spring 3.1 in a web application, generating pdf opens the pdf in the same browser window, but i want to give options like save before opening the pdf. </p><p> </p><p>code used for pdf generation </p><p> </p><div>PDFRenderOption pdfOptions = new PDFRenderOption(options);</div><div>pdfOptions.setOutputFormat(PDFRenderOption.OUTPUT_FORMAT_PDF);</div><div>pdfOptions.setOption(IPDFRenderOption.PAGE_OVERFLOW,</div><div>IPDFRenderOption.FIT_TO_PAGE_SIZE);</div><div>pdfOptions.setOutputStream(response.getOutputStream());</div><div>runAndRenderTask.setRenderOption(pdfOptions);</div><div> </div><div>i am using following code for excel, which gives me the options to open save and cancel in windows machine.</div><div> </div><div><div>EXCELRenderOption excelOptions = new EXCELRenderOption(options);</div><div>excelOptions.setOutputFormat("xls");</div><div>excelOptions.setOfficeVersion(EXCELRenderOption.OUTPUT_FORMAT);</div><div>excelOptions.setOutputStream(response.getOutputStream());</div><div>runAndRenderTask.setRenderOption(excelOptions);</div><div> </div><div>i wanted the same options(open, save, cancle) for pdf as well</div><div> </div><div>please help</div><div> </div><div>Thanks,</div><div>Amit</div><div> </div><div> </div><div> </div></div><p> </p>
Find more posts tagged with
Comments
There are no comments yet