Writing to crystal report from datagridview

C

Cheryl

Hi! I have a datagridview that create views for a dynamic dataset. Now I
would like to put the whole datagridview to a crystal report? Any ideas to
do this?

Thanks!
 
B

bob

Hi,
Assuming that you are going to write an integrated report.
Caveat being a report change needs new instal of program on target
machine.
Assume you have a typed dataset.
Design your Report using the Visual Studio IDE. setting its datasource
to be the typed dataset.
Design a form with a CrystalReportViewer control on it.
(Available from the toolbox.)

Pass the underlying dataset of your datagridview to the Report form.
Invoke your report, set its datasource to be the incoming dataset and
hang it in the report viewer.

HTH
Bob
 
C

Cheryl

Thanks. That means that I can't simply generate the report by dynamcially
defining the columns I want and the positions with codes as in datagridview?
 

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