XtraReports Web 查看器未加载参数弹出窗口
因此,我们从保存的文件加载报告(这似乎不是执行操作的一般方法),但报告查看器拒绝初始化参数弹出窗口。卧槽!!!
这是代码:
protected void Page_Load(object sender, EventArgs e)
{
string ReportName = Request["ReportName"];
XtraReport newReport = CreateReportFromFile(ReportName);
newReport.RequestParameters = true;
ReportViewerControl1.Report = newReport;
}
private XtraReport CreateReportFromFile(string filePath)
{
XtraReport report = new XtraReport();
report = XtraReport.FromFile(filePath, true);
return report;
}
So were loading a a report from a saved file (this seems to not be the general way to do things), but the report viewer refuses to initialise the parameters popup. WTF!!!
Here's the code:
protected void Page_Load(object sender, EventArgs e)
{
string ReportName = Request["ReportName"];
XtraReport newReport = CreateReportFromFile(ReportName);
newReport.RequestParameters = true;
ReportViewerControl1.Report = newReport;
}
private XtraReport CreateReportFromFile(string filePath)
{
XtraReport report = new XtraReport();
report = XtraReport.FromFile(filePath, true);
return report;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅在整页加载时执行此操作有帮助吗?
Does doing this only on a full page load help?