Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Render PDF as attachment in BIRT
Rapporter
Hi Everyone,
i am trying to ender pdf for my report. It is being rendered in the same window. I want to open it as attachment.How can i do it?
This is my code:-
PDFRenderOption options = new PDFRenderOption();
options.setOutputFormat(mDealsConstantsUtility.STR_REPORT_OUTPUT_FORMAT_PDF);
options.setOption(mDealsConstantsUtility.STR_ALLOW_MODIFICATION, Boolean.valueOf(false));
objResponse.setHeader(mDealsConstantsUtility.STR_REPORT_CONTENT, mDealsConstantsUtility.STR_REPORT_CONTENT_TYPE);
options.setOutputStream(objResponse.getOutputStream());
Please help.
Find more posts tagged with
Comments
There are no comments yet