应用程序与水晶报告
本文关键字:报告 水晶 应用程序 | 更新日期: 2023-09-27 18:12:31
我创建了一个包含Crystal Reports
(基础版10.5)的应用程序。如果我把它安装在安装了Visual Studio的计算机上,一切都可以正常工作。如果我将它安装在没有Visual Studio
的计算机上,则会出现错误。
这是它的堆栈轨迹:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM'Software'Microsoft'Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM'Software'Microsoft'Fusion!EnableLog].
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
at ProgramRoglic.CrystalReport1..ctor()
at ProgramRoglic.Bill..ctor()
at ProgramRoglic.Bill..ctor(CustomerData _customer, OrderData _order, List`1 _orderDetails)
at ProgramRoglic.Orders.button8_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
,
我有一个问题:运行水晶报告的计算机需要安装水晶报告吗?我可以把它们添加到Prerequisites
中吗?
Thx
客户端需要Crystal Report查看器。
这里有一个你可以使用的链接:http://www54.sap.com/solution/sme/software/analytics/crystal-reports-viewer/index.html