Passing Data to reports

Stimulsoft Reports.Flex discussion
tonysameh
Posts: 10
Joined: Mon Nov 08, 2010 6:09 am
Location: Egypt

Passing Data to reports

Post 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
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Passing Data to reports

Post 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.
Locked