c# - Crystal Report 在加载时出现错误

标签 c# crystal-reports

我的 form1 上有一个 Crystal 报表和一个按钮,按下按钮然后将加载报表。但是我收到了这个错误。

enter image description here

enter image description here

我的按钮代码是

private void button1_Click(object sender, EventArgs e)
{
    crystalReportViewer1.ReportSource = (@"C:\Users\Administrator\Desktop\WindowsApplication1\WindowsApplication1\CrystalReport1.rpt");
    crystalReportViewer1.DisplayToolbar = true;
}

最佳答案

将您的解决方案平台更改为 X86。我想可能是你的机器是 64 位的,而你只安装了 32 位的。

enter image description here

关于c# - Crystal Report 在加载时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21703195/

相关文章:

C# 查找和替换 XML 节点

c# - 代码访问安全 - 基础知识和示例

c# - 无法选择数据绑定(bind)的 DataGridView 中的复选框

c# - 如何舍入到最接近的 0.5?

crystal-reports - 抑制 Crystal 报告中的行条件

visual-studio - VS2012 - VS2013 - VS2015 - VS2017 - VS2019 的 Crystal 报表

c# - LINQ 在生成 ToList() 时检查字符串属性是否为 NULL

c# - 无法加载文件或程序集 CrystalDecisions.ReportAppServer.ClientDoc

c# - 如何在 Crystal Reports 中绑定(bind) session 值

internet-explorer - IE11 - Crystal Reports - PrintMode ActiveX 现在显示 PDF 提示(而不是打印机提示)?