This is based on window application
1. Add new windows form that is "Crystal reporter" in the "Reporing" label
2.Add the user control "CrystalreporterView"
Below is the code detail:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
//establish the data connection and configuration
string connectionstring = "Data Source=(local);Initial Catalog=master;Initial Catalog=master;Integrated
SqlConnection sc = new SqlConnection(connectionstring);
sc.Open();
SqlDataAdapter sa = new SqlDataAdapter("select German from test", sc);
DataSet ds = new DataSet();
sa.Fill(ds,"test");
// bind the dataset to the crystalreport and crystalreportviewer
CrystalReport1 report = new CrystalReport1();
report.SetDataSource(ds);
sc.Close();
this.crystalReportViewer1.ReportSource = report;