Skip to main content



      Home
Home » Archived » BIRT » Saving BIRT on the server as PDF
Saving BIRT on the server as PDF [message #1182218] Mon, 11 November 2013 22:57 Go to next message
Eclipse UserFriend
When the user runs a report, I want to save a copy of the ran report on the server automatically as a PDF

do you think this code does the trick ?

importPackage(Packages.org.eclipse.birt.report.engine.api);
var re = reportContext.getReportRunnable().getReportEngine();
var des = re.openReportDesign("C:/Testing/ABC.rptdesign");
var ntask = re.createRunAndRenderTask(des);
var options = new pdfRenderOption();
var outputfile = "c:/temp/test1.pdf";
options.setOutputFileName(outputfile);
options.setOutputFormat("pdf");
ntask.setRenderOption(options);
ntask.run();
ntask.close();
Re: Saving BIRT on the server as PDF [message #1197191 is a reply to message #1182218] Tue, 19 November 2013 15:04 Go to previous message
Eclipse UserFriend
It looks close, at least. Have you tried it? Does it work?
Previous Topic:Invoke Client Side Java Script from a Table Cell
Next Topic:The database can't query
Goto Forum:
  


Current Time: Sun Jul 13 21:36:31 EDT 2025

Powered by FUDForum. Page generated in 0.04012 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top