cancel
Showing results for 
Search instead for 
Did you mean: 

ReportViewer System.NullReferenceException on MouseMove

Former Member
0 Kudos

I am experiencing this error in the report viewer. I noticed other are experiencing it as well. I thought I would add my information to see if it can help pinpoint the issue.

I am using:

Crystal Reports 2008 SP3 FP3.3

Visual Studio .NET 2008

.NET Framework 3.5

The report viewer is in embedded in a non-mdi form. The ReportDocument object is passed to the form in the constructor and set to the ReportViewer's ReportSource. Then the WindowState is set to Maximized. The error occurs when the report becomes visible on the screen but only if the mouse is moved over the report viewer area. If the mouse is still it does not error, and if the mouse is not over the report viewer it does not error.

I cannot reproduce on other machines, it seems to be happening on just certain ones (all on same version of Crystal)

Error:

System.NullReferenceException: Object reference not set to an instance of an object. at CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.UserControl.WndProc(Message& m) at CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m) 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)

Edited by: SBC Programmer on Feb 16, 2011 9:42 AM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

I cannot reproduce on other machines, it seems to be happening on just certain ones

My assertion on this has always been that this is environmental and the above would appear to confirm that. And - it is not limited to some new bug in CRVS2010 as most of those running into this issue assume.

Unfortunately, this leaves us with the tricky task of determining the environment differences. This could be software related, e.g.; anything from mouse settings, to video settings to video drivers, to mouse drivers, etc. It could also be hardware related. Again, the mouse, the video card and who knows what else. Only suggestion I'd have is something like [Belarc Advisor|www.belarc.com/] to compare the hardware. [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to compare the dll differences. And that leaves us with things like DPI settings, monitor resolution, mouse settings (double click speed, pointer options, wheel options, etc.).

No resolution I know, but at least some ideas.

- Ludek

Answers (1)

Answers (1)

0 Kudos

We have movement on this issue. Thanks to Keith who purchased a support case.

See this thread and use if for undates :

Thank you

Don