Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataSet is empty (new Windows Form)

Status
Not open for further replies.

lutzs

Programmer
Oct 8, 2002
75
0
0
LU
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
 

As I see in you code, you make
"Dataset1 dataSet = new Dataset1();". First of all, make sure that 'dataSet' contains any data after this operation.

Mary

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top