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

Error switching to design mode

1 Answer 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 06 May 2009, 08:56 PM
Hello,
I have created a master report and a sub report.
The datasource code for the master report is present in the code behind file where I have the viewer control.
The datasource code for the sub report is present in the code behind report file itself.
Opening the sub report in the Design mode has no problems at all. I insert the sub report control in the detail area of the master report. But now as I go to the properties of this control to point to the sub .vb report file in the 'ReportSource' property, I get an alert box saying 'object reference Not set to instance of an object'. Both the report files are in the same app_code folder.
Can you suggect what is the problem?

Thanks,
Sanjay

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 07 May 2009, 03:04 PM
Hi Sanjay,

Please follow the best practices for report creation and have the reports in a separate class library which is then referenced in your web site/app, instead of placing the reports directly in a web site.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or