using CrystalDecisions.Share;
命名空間
然後
ReportDocument poRpt = new ReportDocument();
poRpt.Load(fileName);
SqlDataAdapter sda = new SqlDataAdapter();
sda.SelectCommand = new SqlCommand(sql, con);
sda.SelectCommand.ExecuteNonQuery();
DataSet ds = new DataSet();
sda.Fill(ds, "RepairRecord");
poRpt.SetDataSource(ds);
this.cryRV.ReportSource = poRpt;
就可以了,fileName是妳報表的相對路徑,相對於exe文件,最好把報表跟.exe文件放在壹起,方便