Preview ShowWithRibbonGUI brings error

Stimulsoft Reports.NET discussion
Post Reply
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Preview ShowWithRibbonGUI brings error

Post 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!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Preview ShowWithRibbonGUI brings error

Post by HighAley »

Hello.

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

Thank you.
HowieD
Posts: 27
Joined: Fri Sep 17, 2010 8:29 am

Re: Preview ShowWithRibbonGUI brings error

Post by HowieD »

Hallo,
I was able to Upgrade to 2020.2.3 and it seems this version solved the problem.
Thank you!
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Preview ShowWithRibbonGUI brings error

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply