Reputation: 2352
I user reportviewer for my winform app!!!
now when i select reportviewer control from toolbox and add that to page controler, any thing not shown on form designer , but bottom of page the name of reportviewer will be seen!!!
i really confused for this problem !!!
this problem appeared when i make backup from my project !!! and before that i did't have any problem with report viewer! (i set location and size of reportviewer manually but ...)
this.reportViewer1.Location = new System.Drawing.Point(0, 0);
this.reportViewer1.Name = "ReportViewer";
this.reportViewer1.Size = new System.Drawing.Size(396, 246);
this.reportViewer1.TabIndex = 0;
this.reportViewer1.Visible = true;
Upvotes: 14
Views: 21116
Reputation: 1
this is my problem several days ago. I try all the solutions based on my searches. But I found it myself. I uninstall all my report viewer nuget packages and search for nuget packages outside the visual studio. then found an installer saying that you have an older version of microsoft report viewer would you like to replace it? then click Yes install and after I try it... it works! amazing!
Upvotes: 0
Reputation: 66
Install the nuget package:- Microsoft.ReportingServices.ReportViewerControl.Winforms
It will solve the issue
Upvotes: 2
Reputation: 25
install version 11.0.3452. It's working for me. enter image description here.
Upvotes: 2
Reputation: 1500
For those that didn't have the ReportViewer control in the Toolbox so they followed the instructions and added the control manually -- if you don't see the ReportViewer control after dragging the (now available) ReportViewer control, then right click on References in your project structure, then browse to the exact same location from where you took the ....WinForm.dll
or WebForm.dll
and this time choose ...Designer.dll
.
Rebuild your project and try dragging again. This time the control should be visible on the form.
Upvotes: 1
Reputation: 5
How I solved the same issue. Deleted the reference Windows.ReportViewer.Winform and Microsoft.ReportViewer.Common and dragged report viewer control on the form and added this line this.Controls.Add(this.reportViewer1); in private void InitializeComponent()
Upvotes: 0
Reputation: 576
I found a workaround
this line Manual added this.Controls.Add(this.reportViewer1);
on method InitializeComponent
Why when Drag-drop control on the Windows Forms
Not added automatic
P.s Sorry for my english
Upvotes: 26
Reputation: 41
I had the same problem as you and I solved it by updating the dll Windows.ReportViewer.Winform
(version 10.0) to (version 11.0) with Nuget.
Upvotes: 4