Multiple DataSource matching

Stimulsoft Reports.NET discussion
Post Reply
fkmfkm
Posts: 181
Joined: Thu Jul 05, 2007 11:26 pm
Location: Kuala Lumpur

Multiple DataSource matching

Post by fkmfkm »

Hi,

Lets say I have 2 Datasource, both also DataTable source.

Do I RegData multiple times ?
eg.

sti.RegData("xxx",dt1)
sti.RegData("yyy",dt2)

Second question: How do Sti knows which of the dt will map to which DataSource in the report ?
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Multiple DataSource matching

Post by Vital »

Lets say I have 2 Datasource, both also DataTable source.

Do I RegData multiple times ?
eg.

sti.RegData("xxx",dt1)
sti.RegData("yyy",dt2)
If this Data Tables placed in one DataSet you can register this DataSet. In other case you need call method RegData for each Data Table.
Second question: How do Sti knows which of the dt will map to which DataSource in the report ?
Please see property NameInSource (DataName in 2007.1) of datasource. Report engine use this string to find data in DataStore (Method RegData register data in DataStore).

Thank you.
Post Reply