I'm using Version 2020.1.1 of Reports.Net in one product.
On some machines, when the user wants to show a preview of a reprort, the following error comes up:
Code: Select all
Source: Stimulsoft.Report.Win
Message: Object Reference Not Set to an instance of an object.
at Stimulsoft.Report.Viewer.StiRibbonViewerForm.OnPaint(PaintEventArgs e) in D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Win\Viewer\StiRibbonViewerForm.cs:Line 231.
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Stimulsoft.Controls.Win.DotNetBar.RibbonForm.WndProc(Message& m) in D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Controls.Win\Office2007Form\RibbonForm.cs:Line 2152.
at Stimulsoft.Report.Viewer.StiRibbonViewerForm.WndProc(Message& m) in D:\Stimulsoft\Stimulsoft.Reports\Stimulsoft.Report.Win\Viewer\StiRibbonViewerForm.cs:Line 287.
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)
When I use the Show method, rather than the ShowWithRibbonGUI method, there is no error.
Please let me know how I can rid of this error using ShowWithRibbonGUI method?
Thanks!