C# 部署crystal报表应用程序时出错
我发这条帖子是因为,我绝望了 我开发了一个C#应用程序,它使用Crystal Report生成一个*.doc文件。该应用程序在我的开发工作站上运行,但我无法在客户端工作站上运行 当我在客户端站上执行应用程序时,应用程序崩溃,并显示以下消息:“MyApplicationName.exe停止工作”。我已在客户端工作站上安装了Visual Studio,用于查看应用程序的线路崩溃,线路为:C# 部署crystal报表应用程序时出错,c#,.net,visual-studio-2012,crystal-reports,C#,.net,Visual Studio 2012,Crystal Reports,我发这条帖子是因为,我绝望了 我开发了一个C#应用程序,它使用Crystal Report生成一个*.doc文件。该应用程序在我的开发工作站上运行,但我无法在客户端工作站上运行 当我在客户端站上执行应用程序时,应用程序崩溃,并显示以下消息:“MyApplicationName.exe停止工作”。我已在客户端工作站上安装了Visual Studio,用于查看应用程序的线路崩溃,线路为:rpt.ExportToDisk(ExportFormatType.WordForWindows,destinat
rpt.ExportToDisk(ExportFormatType.WordForWindows,destinatedPath)代码>
该行从以下代码中提取:
ReportDocument rpt = rpt = new ReportDocument();
rpt.Load(rptPath);
rpt.ExportToDisk(ExportFormatType.WordForWindows, destinatedFilePath);
使用Visual Studio调试应用程序时,错误为:
0x00000000 in MyApplicationName.exe :
0xC0000005: Access Violation
我使用Installshield部署了我的应用程序。我使用MergeModule在必备组件中添加了SAP Crystal Reports runtime engine for.NET Framework。
此外,我还将Microsoft.NET Framework 4.5完整版和WindowsInstaller 4.5 for WindowsVista(x86)
我的开发配置和客户端配置:Windows 7 64位,Net Framework 4.5,SAP Crystal Reports runtime engine for.Net Framework 13.0.15,Visual Studio 2012
这个问题我已经讨论了4天了,所以我需要你的帮助
提前感谢您的帮助