One more thing I found out. I went to the designer.cs file. There was no code for adding the report viewer into the controls. So manually I added the code this.Controls.Add(this.reportViewer1); Then I am able to see the control in designer. But the control is not getting focused. Means, I am not able to select the control in the designer. I went to definition of report viewer, I found the following entry:
[Designer("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(IDesigner))]
But I was creating one more sample project to see whether it is working there or not. Surprisingly it was working there without adding any designer code(to add it to controls). Again I went to the definition and saw the following code:
<strong>[Designer("Microsoft.Reporting.WinForms.ReportViewerDesigner, Microsoft.ReportViewer.Design, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(IDesigner))]</strong>
Dont know what is the problem. Is the version 9.0.0.0 is licensed or something like that ?