I am using Crystal Report with VS 10,
I have added DataSet.
Now if There's only One Table in DataSet then data is being displayed, while if i add Two Tables with Link, then Data is not being display.
And i am taking fields from this table of DataSet(XSD).
How to overcome this problem.
Thanks In Advance. Khilen
You need to bind the DataTable(s) that you intend to use instead of binding the entire DataSet. This SO answer shows a very good example: https://stackoverflow.com/a/8341474/283895
(Code copied from that article)
ReportDocument rpt = new ReportDocument(); rpt.load(); rpt.Database.Tables.SetDataSource(ds.Tables); this.crystalReportViewer1.ReportSource = rpt;