Binding Data problem with StimulReport.Net

Stimulsoft Reports.NET discussion
Post Reply
Stefan Hendricks
Posts: 1
Joined: Fri Jul 14, 2006 4:48 am
Location: Holland

Binding Data problem with StimulReport.Net

Post by Stefan Hendricks »

Dear Reader,

I'm evaluating a few reportgenerators and luckely I found your component. Verry visual and promissing to be our choice. For testing I'm have a ODBC connection that I'm using. On my form, with just one button to start the report, I'm having two DataAdapters, one dataset containg the two table of the Adaprters. I also created a relation between the two tables. Code to start the report:

private void button1_Click(object sender, EventArgs e)
{
odbcDataAdapter1.Fill(dataSet11);
odbcDataAdapter2.Fill(dataSet11);
// At this moment the dataSet11 contains th expected data
stiReport1.RegData(dataSet11);
stiReport1.Render(true);
stiReport1.Show();
// Empty report no data to be seen?? I just dragged a column of one of the dataset-tables on my report. NO VISUAL RESULT though???
}

dataSet11 contains data as expected. The Report itself doesn't show any data?? I even just dropped one field on the report. Am I doing something wrong?

gr. Stefan
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Binding Data problem with StimulReport.Net

Post by Vital »

Please send your report to support[at]stimulsoft[dot]com for examination.

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

Binding Data problem with StimulReport.Net

Post by Vital »

You need change your code from:
Stefan wrote: odbcDataAdapter1.Fill(dataSet11);
odbcDataAdapter2.Fill(dataSet11);
to

odbcDataAdapter1.Fill(dataSet11, "Table1");
odbcDataAdapter2.Fill(dataSet11, "Table2");

Without changes your code fill one table with default name "Table".

Thank you.
Post Reply