469,910 Members | 1,600 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,910 developers. It's quick & easy.

C# DataSet and CrystalReport in Windows Form

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
Nov 17 '05 #1
2 2606
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP15.phx.gbl...
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

Nov 17 '05 #2
Thanks Ignacio.
The SetDataSource really helps!

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> glsD:%2****************@TK2MSFTNGP12.phx .gbl...
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jason Huang" <Ja************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP15.phx.gbl...
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


Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by s-galit | last post: by
3 posts views Thread by redneon | last post: by
1 post views Thread by Jason Huang | last post: by
2 posts views Thread by Don Wash | last post: by
2 posts views Thread by Gary Shell | last post: by
2 posts views Thread by krunom | last post: by
6 posts views Thread by Wilfried Mestdagh | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.