Reportviewer tool missing in visual studio 2017 RC

后端 未结 5 1052
眼角桃花
眼角桃花 2020-11-30 22:54

I just started to write reporting software in new version of visual studio named visual studio 2017 RC but just noticed that core reportviewing tools is missing from both wi

5条回答
  •  难免孤独
    2020-11-30 23:16

    If you're like me and tried a few of these methods and are stuck at the point that you have the control in the toolbox and can draw it on the form but it disappears from the form and puts it down in the components, then simply edit the designer and add the following in the appropriate area of InitializeComponent() to make it visible:

    this.Controls.Add(this.reportViewer1);
    
    or
    
    [ContainerControl].Controls.Add(this.reportViewer1);
    

    You'll also need to make adjustments to the location and size manually after you've added the control.

    Not a great answer for sure, but if you're stuck and just need to get work done for now until you have more time to figure it out, it should help.

提交回复
热议问题