majorsilence / My-FyiReporting

Majorsilence Reporting, .NET report designer and viewer. Fork of fyireporting,
Apache License 2.0
348 stars 201 forks source link

ArgumentOutOfRangeException if horizontal scroll with arrow keys or mouse wheel #197

Open drelec opened 4 years ago

drelec commented 4 years ago

When you zoom in on a report to display horizontal scrolling, when you click on the arrows on the keyboard, or when you use the mouse wheel to scroll horizontally, you see an error in both the report designer view and the report viewer.

System.ArgumentOutOfRangeException: Value of '-986' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'. Parameter name: Value at System.Windows.Forms.ScrollBar.set_Value(Int32 value) at fyiReporting.RdlViewer.RdlViewer.DrawPanelKeyDown(Object sender, KeyEventArgs e) at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) at System.Windows.Forms.Control.WmKeyChar(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)