Page 1 of 1

Binding Data problem with StimulReport.Net

Posted: Fri Jul 14, 2006 4:53 am
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

Binding Data problem with StimulReport.Net

Posted: Fri Jul 14, 2006 5:42 am
by Vital
Please send your report to support[at]stimulsoft[dot]com for examination.

Thanks.

Binding Data problem with StimulReport.Net

Posted: Fri Jul 14, 2006 7:11 am
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.