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
Designing Analytics Reports
onCreate Render PDF
Migrateduser
Hi,
I wanted to render a PDF and the same time display the result in the browser.
here is my javascript under onCreate.
importPackage(Packages.org.eclipse.birt.report.engine.api);
var re = reportContext.getReportRunnable().getReportEngine();
var des = re.openReportDesign("C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/birt/reportTest.rptdesign");
var ntask = re.createRunAndRenderTask(des);
ntask.setParameterValue("lexdt", params["dino"].value.toString());
var options = new PDFRenderOption();
var outputfile = "c:/rptPDF/reportTest"+ params["dino"].value + ".pdf";
options.setOutputFileName(outputfile);
options.setOutputFormat("pdf");
ntask.setRenderOption(options);
ntask.run();
ntask.close();
//
The result from the browser was perfect displayed while on the rendered PDF file is not showing any record from my database.
Very much appreciated for the solutions.
Thanks
LitoJ
Find more posts tagged with
Comments
There are no comments yet