[英]Crystal report in not showing the data at Second Run
我是水晶报告的新手。 当我尝试通过某些选择执行我的一份水晶报表时,它显示了数据。 但是在第二次运行时,没有更改任何报告仅显示标题为空白的选择。 没有错误显示出来。 我在第二次运行时在 data.table 获得了相同的数据。 但它显示空白报告。 谁能告诉我如何解决这个问题? 在这里,我附加了第一次运行和第二次运行。 这是第一次运行后的水晶报表屏幕
这是在执行时调用的 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;
}
}
}
如果你正在使用数据集或报告 Object 它,使 Null,意味着下次运行为空
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.