Search code examples
c#winformsreportviewer

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


Solution

  • 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