问题描述
我是水晶报告的新手。当我尝试执行某些选择的水晶报表时,它将显示数据。但是在第二次运行时,没有更改任何选择,该报告仅显示带有标题的空白。没有错误显示。我在第二次运行时在数据表中获得了相同的数据。但它显示空白报告。谁能告诉我如何解决这个问题?在这里,我附加了第一轮和第二轮。 This is the screen of crystal report after First run
这是在执行时调用的View Report方法。我两次运行相同的类型。第一次正确显示所有数据。
public void viewreport()
{
createreport();
crystalReportViewer1.ShowRefreshButton = false;
if (boolPrintOption == false)
{
if (cmbReportType.Selectedindex == 1)
{
if (cmbCategory.Selectedindex == 0)
{
if (this.Invokerequired)
{
this.BeginInvoke((MethodInvoker)delegate()
{
crystalReportViewer1.ReportSource = report_FixedDetails;
});
}
else
{
crystalReportViewer1.ReportSource = report_FixedDetails;
}
}
else
{
if (this.Invokerequired)
{
this.BeginInvoke((MethodInvoker)delegate()
{
crystalReportViewer1.ReportSource = report_FlxyMibcoDetail;
});
}
else
{
crystalReportViewer1.ReportSource = report_FlxyMibcoDetail;
}
}
}
else
{
if (cmbCategory.Selectedindex == 0)
{
if (this.Invokerequired)
{
this.BeginInvoke((MethodInvoker)delegate()
{
crystalReportViewer1.ReportSource = report_FixedSummary;
});
}
else
{
crystalReportViewer1.ReportSource = report_FixedSummary;
}
}
else
{
if (this.Invokerequired)
{
this.BeginInvoke((MethodInvoker)delegate()
{
crystalReportViewer1.ReportSource = report_FlxyMibcoSummary;
});
}
else
{
crystalReportViewer1.ReportSource = report_FlxyMibcoSummary;
}
}
}
if (ds.Tables[0].Rows.Count == 0)
{
clsTVD6Message objMsg = new clsTVD6Message();
objMsg.ShowMessage("SAV6056");
return;
}
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)