Navigation:  Contents > Developer FAQ > General >

StimulReport.Net Frequently Asked Questions

Print this Topic Previous pageReturn to chapter overviewNext page

How to bind data to a report?

It is necessary to register data in the DataStore to bind them to a report.

You can do it this way:

 

C#

 

DataSet dataSet1 = new DataSet();

ddataSet1.ReadXmlSchema("Demo.xsd");

dataSet1.ReadXml("Demo.xml");

 

StiReport report = new StiReport();

report.RegData("MyDataSet",dataSet1);

 

 

VB

 

Dim Data As DataSet = New DataSet()

Data.ReadXmlSchema("Demo.xsd")

Data.ReadXml("Demo.xml")

 

Dim Report As StiReport New StiReport()

Report.RegData("MyDataSet",Data)