WPF 中的 ReportViewer 在类似机器上的行为不同
我的 WPF 应用程序内的弹出窗口中有一个报表查看器控件。当要打印报告时,在某些客户端计算机上,它会显示以下消息“尚未指定某些参数或凭据”。 此错误不会出现在每台客户端计算机上,即使这些计算机在各方面都相同。
我已尝试对本地报告进行显式刷新,以及发布类似问题时提到的所有选项。 预先感谢您的所有帮助。
I have a reportviewer control in a pop up window inside my WPF application. When the report is to be printed, on some client machines it gives the following message "Some parameters or credentials have not been specified".
This error does not come on every client machine even though the machines are identical in every respect.
I have tried the explicit refresh on the local report as well as all the options mentioned when a similar question has been posted.
Thanks in advance for all the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有这样的代码:
将其更改为:
ReportViewer.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence)
后一个例程表示它已过时,但它使该错误消息消失...至少到目前为止在我的测试中是这样!!
If you have code like this:
Change it to:
ReportViewer.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence)
This latter routine says it's obsolete but it makes that error message go away... at least it does in my testing so far!!
我在同一个 XAML 中有 2 个报告 (rdcl)。
当我想在单击按钮后更改数据源时,我遇到了同样的问题。
在我将两次刷新移至单击功能的末尾后,再也没有收到此消息,并且一切正常。
I have 2 Reports (rdcl) in the same XAML.
I was having this same problem when I wanted to change datasource, after a button click.
After I've moved both refreshes to the end of the click function, never got this message again and everything is working fine.