This is a migrated thread and some comments may be shown as answers.

Subreport reportsource error

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 11 Jul 2011, 06:43 AM
Hi,
Whenever i going to add reportsource for the subreport it gives me error of "Object reference not set to instance of a object"
what could be the problem please let me know.

Thanks.
Manoj Gupta

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Jul 2011, 09:34 AM
Hi Manoj,

This error means that there is a problem with the report you are trying to assign. Run it in preview to see the problem or assign it programmatically for a full stack trace that would point you to the problem e.g.

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        Report1 report1 = new Report1();
        ReportViewer1.Report = report1;
    }
}

Best wishes,
Steve
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
General Discussions
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or