【问题标题】:Application with Crystal Reports水晶报表应用
【发布时间】:2013-05-07 22:05:32
【问题描述】:

我创建了一个包含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)

--

我有一个问题:运行 Crystal Reports 的计算机是否需要安装 Crystal Reports?我可以在Prerequisites 中添加它们吗?

谢谢

【问题讨论】:

  • 答案是肯定的,你需要添加它作为先决条件。

标签: c# visual-studio-2008 crystal-reports crystal-reports-2008


【解决方案1】:

是的,客户需要 Crystal Report 查看器。

您可以使用以下链接:http://www54.sap.com/solution/sme/software/analytics/crystal-reports-viewer/index.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-08
    • 1970-01-01
    • 2011-05-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-05
    • 2010-10-24
    相关资源
    最近更新 更多