Hi,
i've created a dataset with ado.net. Everything is okay.
I can show the result in Form1.
Now, i have a new windows form (Form2). In this windows form i will show the dataset of the first windows form with the report viewer.
My code is:
CrystalReport1 oRpt = new CrystalReport1();
Dataset1 dataSet = new Dataset1();
oRpt.SetDataSource(dataSet);
crystalReportViewer1.ReportSource = oRpt;
The report viewer load the design of my crystal report but the dataset/ the report is empty.
What can I do?
Must I create a new dataset?
Thanks,
Stephanie
i've created a dataset with ado.net. Everything is okay.
I can show the result in Form1.
Now, i have a new windows form (Form2). In this windows form i will show the dataset of the first windows form with the report viewer.
My code is:
CrystalReport1 oRpt = new CrystalReport1();
Dataset1 dataSet = new Dataset1();
oRpt.SetDataSource(dataSet);
crystalReportViewer1.ReportSource = oRpt;
The report viewer load the design of my crystal report but the dataset/ the report is empty.
What can I do?
Must I create a new dataset?
Thanks,
Stephanie