【问题标题】:Printing Error-An error occurred during this operation-RDLC-Report viewer Wpf打印错误-此操作期间发生错误-RDLC-报告查看器 Wpf
【发布时间】:2018-12-11 01:21:36
【问题描述】:

您好,我正在尝试使用报告查看器在 wpf 中生成报告。

<WindowsFormsHost>        
            <rv:ReportViewer x:Name="RVReciept"/>
</WindowsFormsHost>

单击打印按钮时出现错误,即使导出按钮不起作用。 Print Option of Report View 错误: Error

我找不到任何解决方案。请指导我。

【问题讨论】:

  • 您好,您找到解决方案了吗?

标签: c# wpf rdlc reportviewer


【解决方案1】:

我遇到了类似的问题。但我使用 WinForms。我花了很多时间来解决和谷歌搜索。但最后我的问题是这段代码:

[STAThread]
private static async Task Main()

使用此组件时切勿这样做。仅使用非异步方法 Main。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-24
    • 2014-03-14
    • 1970-01-01
    • 2011-12-29
    • 1970-01-01
    • 2010-09-09
    相关资源
    最近更新 更多