Hi Li
Thanks for your reply.
I tried the following code. But, I meet the same issue. It doesn't work on
my side.
DataSet1 ds1 = new DataSet1();
DataSet1TableAdapters.ProductTableAdapter pta = new
WindowsApplication4.DataSet1TableAdapters.ProductTableAdapter();
pta.Fill(ds1.Product);
CrystalDecisions.CrystalReports.Engine.ReportDocument rdDisplay = new
CrystalDecisions.CrystalReports.Engine.ReportDocument();
rdDisplay.Load("CrystalReport1.rpt");
rdDisplay.SetDataSource(ds1.Tables[0]);
this.crystalReportViewer1.ReportSource = rdDisplay;
DataSet2 ds2 = new DataSet2();
DataSet2TableAdapters.AddressTableAdapter pta2 = new
WindowsApplication4.DataSet2TableAdapters.AddressTableAdapter();
pta2.Fill(ds2.Address);
rdDisplay.SetDataSource(ds2.Tables[0]);
I'm sorry to say this issue is related to Cystal Report Development.
However, it is not supported by Microsoft. For crystal report issue, I
suggest you may contact crystal report support for help directly:
http://support.businessobjects.com/
You may also post it in Crystal Report forum.
http://www.tek-tips.com/threadminder.cfm?pid=767
For the detailed information on the licensing and support on Crystal
Report, you may refer the following KB article
INFO: Licensing and Support for Crystal Reports for Visual Studio .NET
http://support.microsoft.com/?id=317789
Hope this helps,
Sincerely,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.