Dataset Problem

Stimulsoft Reports.NET discussion
Post Reply
ramond
Posts: 5
Joined: Thu Jun 19, 2008 11:33 am

Dataset Problem

Post by ramond »

I am suddenly idiot, I have designed the form and works correctly until attempt to parsar the data of the connection and dataset to him by code. Somebody can help me with an example to create dataset for the report.
Thanks.

Ramon
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dataset Problem

Post by Vital »

Hello Ramon,

If you need register dataset in report by code you can use following code:

Code: Select all

report.RegData("MyDataSet", dataSet);
If you need register connection in report by code you can use following code:

Code: Select all

report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(new StiSqlDatabase("MyConnection", "ConnectionString"));
Thank you.
Post Reply