Page 1 of 1

Preview ShowWithRibbonGUI brings error

Posted: Thu Dec 10, 2020 8:35 am
by HowieD
Hi,
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)
After this message the preview is shown as expected.

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!

Re: Preview ShowWithRibbonGUI brings error

Posted: Thu Dec 10, 2020 2:57 pm
by HighAley
Hello.

There was the issue in this build.
Could you upgrade?

Thank you.

Re: Preview ShowWithRibbonGUI brings error

Posted: Mon Dec 14, 2020 1:32 pm
by HowieD
Hallo,
I was able to Upgrade to 2020.2.3 and it seems this version solved the problem.
Thank you!

Re: Preview ShowWithRibbonGUI brings error

Posted: Tue Dec 15, 2020 11:44 am
by Lech Kulikowski
Hello,

Thank you for the information.