Skip to Content
0
Jul 08 at 07:43 AM

Crystalreportviewer error when trying to display report

97 Views Last edit Jul 08 at 01:11 PM 2 rev

Hello,

Currently I'm trying to display a report inside a winforms, I search many tutorial trying to see how should I made it and I came up with this:

I need a form whit a Crystalreportviewer on it, ok so I create it, and when I try to see if display correctly the report there is an exception that I dont know how to solve it.

Here is the code of my form as you can see there is a function call LanzadorReports which recibe a report and parameter list and pass the report to the crystalreportviewer, is very simple as you can see:

And the error happens on the first line of crystalreportviewer:

Is like if the crystal report viewer is not instantiated but is incrustated in the form so the error have no sense, could anyone help me?