Click here to Skip to main content
15,914,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a datatable developed in c#, which is not exactly same as that of Database fields. It contains detail from other fields as well.
Posted

1 solution

All you need to do is something like:
C#
// Create instance of the crystal report.
CrystalReport1 report = new CrystalReport1();
// Set data source to the crystal report - your custom made Datatable here
report.Database.Tables["table1"].SetDataSource((DataTable)demoTable);
// Assign the report to the Crystal report viewer.
crystalReportViewer.ReportSource = report;


For some details, have a look here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900