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

{"Object reference not set to an instance of an object."}

0 Answers 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 05 Aug 2010, 02:57 PM
Hi


This is shanker I doing one report i face this error in my  reporting   {"Object reference not set to an instance of an object."} 

this is my code 


  public void rport(UserDashboard userDashboard)
        {
            var report = new MvcApplication18.Reports.RepClassList();
            var res = userDashboard;
            if (report != null)
            {
                report.DataSource = res;
                
                class_subject_teacher_list_rep.Report = report ---------------here i am getting error
;
                class_subject_teacher_list_rep.ShowExportGroup = true;
            }
        }


here i getting  all values in dashboard variable and Res varibale. But In Reportviewr Binding I face this Error 
{"Object reference not set to an instance of an object."} 


please give any solutions 

thanks and regards

shanker.b








No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
shanker bangari
Top achievements
Rank 1
Share this question
or