C# DataSet and CrystalReport in Windows Form

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

Now that I've built up a DataSet and a CrystalReportViewer in Form1. Also
the CrystalReportViewer is pointing to CrystalReport1. The Form1 can open
the CrystalReport1.
However, I don't know how to have the CrystalReport1 or CrystalReportViewer
use the DataSet.
How does a textbox in a CrystalReport can grab data from a DataSet?
Any help will be appreciated.


Jason
 
Hi,

ReportDocument.SetDataSource is the answer.

You could also pass some parameters for things like labels.

I don't know how to include a textbox though.

cheers,
 
Thanks Ignacio.
The SetDataSource really helps!

Ignacio Machin ( .NET/ C# MVP ) said:
Hi,

ReportDocument.SetDataSource is the answer.

You could also pass some parameters for things like labels.

I don't know how to include a textbox though.

cheers,
 
Back
Top