Skip to main content



      Home
Home » Archived » BIRT » XML Data Source help!!
XML Data Source help!! [message #143951] Wed, 15 March 2006 07:08 Go to next message
Eclipse UserFriend
Hi!,

How can I change the xml source file from JAVA code when I'm using the
report Engine to run and render a pdf file?
Re: XML Data Source help!! [message #144079 is a reply to message #143951] Wed, 15 March 2006 11:36 Go to previous message
Eclipse UserFriend
Originally posted by: doug_porter.dailyaccess.nospam.com

Something like this:

SessionHandle session = DesignEngine.newSession( null );
ReportDesignHandle reportDesignHandle = session.openDesign(myReportName);
SlotHandle datasourceSlotHandle = reportDesignHandle.getDataSources();
OdaDataSourceHandle dataSource = null;
if (datasourceSlotHandle.getCount() > 0) {
dataSource = (OdaDataSourceHandle) (datasourceSlotHandle.get(0));
dataSource.setStringProperty( "FILELIST", myNewXmlSourceFile);
reportDesignHandle.saveAs(myNewReportDesignName);
}
IReportRunnable report = engine.openReportDesign(myNewReportDesignName);


Doug Porter
DailyAccess Corporation

"John Scott" <julio_munoz@audatex.es> wrote in message news:23b40862766aaa74008d6c4c272f3db7$1@www.eclipse.org...
> Hi!,
>
> How can I change the xml source file from JAVA code when I'm using the
> report Engine to run and render a pdf file?
>
Previous Topic:Exceptions when generating a report
Next Topic:The BIRT Contest - Want to win a Sony PSP?
Goto Forum:
  


Current Time: Mon May 12 12:20:29 EDT 2025

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

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

Back to the top