Reputation: 77
I am trying to add a Microsoft Report Viewer to my project, I am using Visual Studio 2015 and also installed Microsoft Report Viewer 2015 Runtime. My first problem was that I had no ReportViewer in toolbar, but I fixed it by searching it through the list (.NET list), then when I tried to add it on my form, it didn't show up on my form, but it was added to the project (because it appeared at the bottom of the screen, just above output as ReportViewer1).
Is there any similar package I can use for reports instead of Microsoft? Or is there any fix for this?
ReportViewer version is 11.0.0.
Upvotes: 0
Views: 6112
Reputation: 836
If it's not showing up on Toolbar, it probably wasn't picked during your main install.
This fixed it for me:
Open Control Panel / Programs and Features / "Microsoft Visual Studio 2015"
Pick "Change"
Wait for splash screen. Press the "Modify" button.
Select "Windows and Web Development" Group
Check "Microsoft SQL Server Data Tools"
Click "Update"
After a bit of time configuring itself you should see "Setup Completed!"
Reload VS, pick the form and it should be on toolbar under Reports group near bottom.
Upvotes: 2
Reputation: 231
Put the in control your webform.
a. Drag the control from your toolbox onto the form.
b. Set the Dock property to fill.
c. Add the following code to YourForm.Designer.cs in the InitializeComponent() method.
this.Controls.Add(reportViewer1);
Upvotes: 1