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;
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With