Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Change an image properties before the report generation
Change an image properties before the report generation [message #635451] Tue, 26 October 2010 16:24 Go to previous message
FrenchGuy is currently offline FrenchGuy
Messages: 2
Registered: October 2010
Junior Member
Hi,

I am generating a report using Report Engine classes and I would like to change the url of an image inserted in the report using BIRT Report Designer.

Is it possible to access this item and change its properties before the generation?

this is a sample of my code :
IReportEngine engine = null;
engine = Engine.getInstance().getEngine();
IReportRunnable design = null;
// Open the report design
try {
    design = engine.openReportDesign(report.getSource());
} catch (EngineException e) {
        LoggerBI.getInstance().fatal("", e);
        return false;
}
IRunAndRenderTask runtask = engine.createRunAndRenderTask(design);
ULocale lc = new ULocale(task.getLocale());
runtask.setLocale(lc);
runtask.setParameterValues(reportParams);
try {
     runtask.run();
} catch (EngineException e) {
     LoggerBI.getInstance().error("", e);
      return (false);
}
runtask.close();



Thanks!
 
Read Message
Read Message
Read Message
Previous Topic:Is it possible to change a grid in its grid event handler (java)
Next Topic:How to create powerpoint and excel exports?
Goto Forum:
  


Current Time: Thu May 23 06:47:14 EDT 2013

Powered by FUDForum. Page generated in 0.01707 seconds