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
Passing Data to reports
Hello,
You can use the following code for this:
Thank you.
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);