To ti je najbolje da pogledas na ovom linku, jer jako je fino objasnjeno.
http://www.codeproject.com/useritems/CreatingCrystalReports.asp
http://www.codeproject.com/useritems/Le_Quang_Anh.asp
Uglavnom obrati najvecu paznju na slijedeci pasus koji cu postaviti ovdje dolje a on se nalazi na prvom linku.
Code:
Set the created Report to display in the Form
Then you have to set a “crystalReportViewer” in your form to load the report that you created earlier. And also you need to set the report source of this “crystalReportViewer” component, which is falling in the properties panel or you can set the report source by using the code like the following.
// code to get data from the DB
DBConnection DBConn = new DBConnection();
OleDbDataAdapter myDataAdapter = DBConn.getDataFromDB();
// use the created Dataset to and fill it with data getting
// from the DB by using the DataAdapter
DataSet dataReport = new DataSet();
myDataAdapter.Fill(dataReport,"myPersonalInfoTable");
// create a new report from the created CrystalReport
myDataReport myDataReport = new myDataReport();
// set the data source of the report
myDataReport.SetDataSource(dataReport);
// set the report source of the created “crystalReportViewer”
// component to the created report
crystalReportViewer1.ReportSource = myDataReport;