我在一个Combo控件中设置了商品列表和用户列表并建立了相应的报表文件,private void comboBox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
int selectedindex=this.comboBox1.SelectedIndex;
switch(selectedindex)
{
case 1: this.crystalReportViewer1.ReportSource=Application.StartupPath+"\\商品列表.rpt";
break;
case 2:
this.crystalReportViewer1.ReportSource=Application.StartupPath+"\\用户列表.rpt";
break;
case 0:
return;
}
}
===================
在运行的时候就出现加载报表失败啊!
帮帮忙,看看会是什么原因!
{
int selectedindex=this.comboBox1.SelectedIndex;
switch(selectedindex)
{
case 1: this.crystalReportViewer1.ReportSource=Application.StartupPath+"\\商品列表.rpt";
break;
case 2:
this.crystalReportViewer1.ReportSource=Application.StartupPath+"\\用户列表.rpt";
break;
case 0:
return;
}
}
===================
在运行的时候就出现加载报表失败啊!
帮帮忙,看看会是什么原因!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货