Set a XML DataSource Programmatically [message #290979] |
Tue, 29 January 2008 08:57 |
Eclipse User |
|
|
|
Originally posted by: pari.gandhi.gmail.com
Hello World,
Here is what I am trying to do:-
I have created a report called test.rptdesign. I have specified a XSD file
as the datasource of my report and the report's dataset contains the
elements in the XSD schema.
right, now I am want to invoke this report programmatically. I have a Java
Object that I have converted to XML (using JAXB) and I now want to set the
XML as the datasource for this report at runtime.
ie., While design time, I have specified a XSD schema as my datasource,
but while run time I want the report to point to a XML file. Makes sense?
How would I go about doing this?
String xmlString = "<application>.................</application>";
ReportDesignHandle reportDesignHandle =
(ReportDesignHandle)design.getDesignHandle();
SlotHandle dataSets = reportDesignHandle.getDataSets();
How can set the xmlString as my dataSource? Any ideas / pointers?
Regards,
Mikey
|
|
|
Powered by
FUDForum. Page generated in 0.03488 seconds