Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reportviewer not shown on form designer (c# winform)

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;

enter image description here

like image 317
Mahdi Youseftabar Avatar asked Jan 27 '15 20:01

Mahdi Youseftabar


People also ask

How do I add Microsoft ReportViewer to Winforms?

To add the ReportViewer Control to a Windows application If the Toolbox is not visible, you can access it from the View menu by selecting Toolbox. Drag the ReportViewer control onto the design surface of the Windows Form. A ReportViewer control named reportViewer1 is added to the form.


Video Answer


2 Answers

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

like image 85
BruceOverflow Avatar answered Sep 22 '22 08:09

BruceOverflow


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.

like image 36
Diego Mariano Cantero Avatar answered Sep 19 '22 08:09

Diego Mariano Cantero