台灣最大程式設計社群網站
線上人數
1002
 
會員總數:246713
討論主題:190131
歡迎您免費加入會員
討論區列表 >> C# >> WinForm Crystal Report 報表無法顯示
[]  
[我要回覆]
1
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
WinForm Crystal Report 報表無法顯示
價值 : 50 QP  點閱數:1192 回應數:1
樓主

OMG
門外漢
0 82
1005 41
發送站內信

我的環境是:
vs2010 + .NET framework 4.0 , platform target 選擇x86
發佈成one click
server /client 已安裝套件:

環境安裝


但是還是一直出現錯誤訊息,請問這該怎麼解決呢?

**** Exception Text **************
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.
Please go to http://www.businessobjects.com/support for more information.
at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
at prjPAL_SPN_New.Shipping.rpt.PackingReport.ASIAPickingReport..ctor()
at prjPAL_SPN_New.Shipping.frmLabelPrint.InitializeComponent()
at prjPAL_SPN_New.Shipping.frmLabelPrint..ctor(frmMain f)
at prjPAL_SPN_New.frmMain.printLabelsToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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)



搜尋相關Tags的文章: [ WinForm ] , [ Crystal Report ] ,
本篇文章發表於2017-06-09 12:41
1樓
最有價值解答

羅伯斯
檢舉此回應
在App.Config檔加入如下的片段試試

<startup useLegacyV2RuntimeActivationPolicy="true">
</startup>
本篇文章回覆於2017-06-10 11:36
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔--
   
1

回覆
如要回應,請先登入.