我有一個帶有ReportViewer控件的簡單WinForms應用程序。大多數時候它工作正常,但有時在ReportViewer窗口中顯示不可恢復的紅十字標記,或者在滾動報告時崩潰。我無法確定導致此行爲的任何因素,但它看起來完全是隨機的。我迷上了異常捕手,這就是我的本事:ReportViewer因Microsoft.ReportingServices.Rendering.RichText.CachedFont而崩潰GetFont
Exception.GetType()名稱:NullReferenceException異常
Exception.Message:對象引用不設置到對象的實例。
Exception.TargetSite Microsoft.ReportingServices.Rendering.RichText.CachedFont GETFONT(Microsoft.ReportingServices.Rendering.RichText.ITextRunProps,字節,布爾)
有沒有人碰巧遇到這個問題?任何方法來解決這個問題?