C# DataSet and CrystalReport in Windows Form

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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,
 
J

Jason Huang

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top