Crystal Report from multiple tables


R

RAF

i'm trying to make report using dataset having two tables

in viewer page iam doing

rpt.SetDataSource(ds.Tables(0))
rpt.SetDataSource(ds.Tables(1))
CrystalReportViewer1.ReportSource = rpt

but it is not working

please tell the right way.

thanx in adv
RAF
 
Ad

Advertisements

S

Shawn

Crystal Reports does not read tables into the record
source. The only way to set the source is by using
multiple datasets.

rpt.SetDataSource(ds1.Tables(0))
rpt.SetDataSource(ds2.Tables(0))

Crazy I know, but that's what you have to do.

Shawn
 

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