Page 2 of 2

Passing Data to reports

Posted: Sun Nov 14, 2010 4:24 am
by tonysameh
OK I realized I should have used loadReportFromString not loadDocumentFromString.
It now shows the data but using the path of the sample data I used in designing the report.

How can I replace this path?

Thanks

Passing Data to reports

Posted: Mon Nov 15, 2010 4:31 am
by Vladimir
Hello,

You can use the following code for this:

Code: Select all

report.dictionary.databases.clear();

var database: StiXmlDatabase = new StiXmlDatabase("ConnectionName", "data/demo.xml", "data/demo.xsd");
report.dictionary.databases.add(database);
Thank you.