Skip to Content
0
Apr 18, 2018 at 04:22 PM

Object reference not set to an instance of an object setting ReportSource

1199 Views

I have a CR viewer in a user control when I attempt to show the report like so:

crViewer.ViewerCore.ReportSource = reportDocument;

I get "Object reference not set to an instance of an object"

The report is not null, in fact I can do the following to print without using the viewer:

reportDocument.PrintToPrinter(1, true, 1, 1);

I have totally uninstalled CR and reinstalled, including the runtimes. Still getting this.