Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ReportViewer designer issue (Not able to see in designer)
 

ReportViewer designer issue (Not able to see in designer)

I am using Visual Studio 2005 Team Edition for software developers. I was trying to create client side reports. I am workin in winforms. When I drag and drop report viewer control I am not able to see it in the form. Instead it is visible only below the form where data set, data adapter use to sit. I tried by adding reference of Microsoft.ReportViewer.Design.dll to my project as mentioned in some forum. But still I am helpless. I need some help here. As a work around I am now using WebBrowser to show the PDF rendered using report viewere. Any help will be appreciated.
Maavu  Friday, June 12, 2009 12:50 PM

Hi,

> I tried by adding reference of Microsoft.ReportViewer.Design.dll to my project

You needn't and shouldn't add a reference to the Microsoft.ReportViewer.Design.dll to your project. VS2005 internally uses the version 8.0.0.0 of the Microsoft.ReportViewer.Design.dll assembly.

VS2005 uses the version 8.0.0.0 of ReportViewer and VS2008 uses the version 9.0.0.0 of ReportViewer. By default, the ReportViewer version 8.0.0.0 appears in Toolbox within VS2005. Perhaps you add the ReportViewer version 9.0.0.0 in Toolbox by chance.

Right click Toolbox and select Choose Items. In the Choose Toolbox Items dialog, switch to the .NET Framework Components tab and select the ReportViewer version 8.0.0.0.

Hope this helps.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Wednesday, June 24, 2009 10:39 AM
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 ?

Maavu  Monday, June 15, 2009 10:57 AM

Hi,

> I tried by adding reference of Microsoft.ReportViewer.Design.dll to my project

You needn't and shouldn't add a reference to the Microsoft.ReportViewer.Design.dll to your project. VS2005 internally uses the version 8.0.0.0 of the Microsoft.ReportViewer.Design.dll assembly.

VS2005 uses the version 8.0.0.0 of ReportViewer and VS2008 uses the version 9.0.0.0 of ReportViewer. By default, the ReportViewer version 8.0.0.0 appears in Toolbox within VS2005. Perhaps you add the ReportViewer version 9.0.0.0 in Toolbox by chance.

Right click Toolbox and select Choose Items. In the Choose Toolbox Items dialog, switch to the .NET Framework Components tab and select the ReportViewer version 8.0.0.0.

Hope this helps.

Sincerely,
Linda Liu


Please remember to mark the replies as answers if they help and unmark them if they provide no help. end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
Linda Liu  Wednesday, June 24, 2009 10:39 AM
Thanks. It worked !! It was refering to version 9. Now after making it to 8 I am able to see it in form designer.
Maavu  Monday, June 29, 2009 3:36 AM

You can use google to search for other answers

Custom Search

More Threads

• TextBox Context Menu
• ImageIndex
• Context menu sub menu appears on the top of the screen
• ComboBox with custom back color for each item
• UserControl serializing embedded classes
• draw subscript superscript in the datagridview header
• UserControl With Multiple Panels
• UserControl(ContainerControl) Receiving Focus
• How to make a control dockable...?
• Problems with My First Whidbey Beta 2 Form