private void BindReport(){
DataSet ds=new DataSet();
string tablename="tb1";
//这是调用另外一个类,功能是访问sql server数据生成数据集
DataTransaction.Equipment myEquipment= new DataTransaction.Equipment() ;
ds=myEquipment.rpt_BrowserWS(tablename);
rpt_ChemistConsume oRpt =new rpt_ChemistConsume(); oRpt.SetDataSource(ds);
CrystalReportViewer1.ReportSource = oRpt;
}
private void Page_Load(object sender, System.EventArgs e)
{
BindReport();
}
DataSet ds=new DataSet();
string tablename="tb1";
//这是调用另外一个类,功能是访问sql server数据生成数据集
DataTransaction.Equipment myEquipment= new DataTransaction.Equipment() ;
ds=myEquipment.rpt_BrowserWS(tablename);
rpt_ChemistConsume oRpt =new rpt_ChemistConsume(); oRpt.SetDataSource(ds);
CrystalReportViewer1.ReportSource = oRpt;
}
private void Page_Load(object sender, System.EventArgs e)
{
BindReport();
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货