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.
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.
Get the nugget package (sounds like you did this)
Add the report viewer to your toolbox.
a. Right Click, then Choose Items...
b. Browse to the dlls in the package.
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);
Related
In beginning 'reportviewer' was not showing in toolbox than i installed "Microsoft RDLC Report Designer" from this link "https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftRdlcReportDesignerforVisualStudio-18001" then I got reportviewer in toolbox but now when I want to add reportviewer to the form but it shows this error the moment I drag and drop the report viewer from toolbox to form.
The report viewer does not come with the designer but is a NuGet package you can add on.
Right click on you project (or solution) and select Manage NuGet Packages.
Install the package for the type of project you creating, for example:
Microsoft.ReportingServices.ReportViewerControl.WebForms
Microsoft.ReportingServices.ReportViewerControl.WinForms
etc...
I recently installed Visual Studio 2015 Community and now my toolbox does not have the report viewer tag, all my existing report viewers in my ASP.NET project show 'error creating Control'. I've checked all my references and they seem to be OK, when I Run the project the report appears fine in the browser.
From reading this, you need to add the SQL Server Data Tools package.
https://social.msdn.microsoft.com/Forums/en-US/70e6b312-48b6-48f5-abc7-6400dfe8ad34/visual-studio-2015-enterprise-reporting-functionality-missing?forum=vssetup
We have managed to track down the solution to this issue. It turns out that the components required for reporting are located within the Microsoft SQL Server Data Tools package. In order to install this package, perform the following steps as a privileged (local or domain administrator) account. Ensure that Visual Studio and all related programs are closed before you begin.
Open Control Panel > Programs > Programs and Features, and select the entry for your version of Microsoft Visual Studio 2015. In our case, it was Microsoft Visual Studio Enterprise 2015.
Click the "Change" button on the top bar above the program list.
After the splash screen, a window will open. Press the "Modify" button.
Select Windows and Web Development > Microsoft SQL Server Data Tools, and check the box next to it.
Press the "Update" button on the lower-right hand side of the window.
Once the installation is complete, open your version of Visual Studio. After the new .dll files are loaded, Reporting functionality should be reimplemented, and you should be able to access all related forms, controls, and objects.
Our working theory is that the web installer did not install the required components for Reporting during the initial installation - however, the issue seems to be resolved now.
Just a heads up for VS 2017. The control is no longer located in the "Toolbox" but is now instead a NuGet package. It can be installed via the Package Manager Console with the command:
Install-Package ReportViewerForMvc
See: https://reportviewerformvc.codeplex.com/wikipage?title=Installation%20%26%20configuration
I have Visual Studio Enterprise 2015, with all updates and patches applied. When I build create a new Visual C# project Templates->Cross-Platform->Blank App (Xamarin.Forms Shared) I get the following error:
A problem was encountered creating the sub project '.Windows'. This project requires a Visual Studio update to load. Right-click on the project and choose 'Download Update'.
When I click Ok, a solution and projects are created but there is no .Windows, so I cant right click on it! If I try add the project then I get the same issue.
I would expect that such a simple use case should work out the box. I can find a few workarounds via Googling but I don't want to hack around with projects before I even write a line of code of my first Xamarin application.
Any ideas on what I need to do to get the project creation working properly "out of the box"?
A second puzzler is that the template creates a .WinPhone folder that is empty, should I have a csproj in it?
Close Visual Studio and try to modify it components (Control Panel -> Uninstall a program -> Microsoft Visual Studio -> click on it).
In opened window click on "Modify".
Then find and select "Windows 8.1 and Windows Phone 8.0/8.1 Tools" (in Windows and Web Development)
Then click on "Update".
also make sure the Hyper-V is enabled :
Control Panel -> Uninstall a program, then in left menu "Turn Windows Features on or off" and find "Hyper-V", if it isn't selected, select it and click "ok".
I want to create a .rdlc file in a WPF project but adding add new dialog box doesn't provides any option to create a new report. I have installed Microsoft SQL server data tools, express localdb and prerequisites for ssdt. Can anyone point me in the direction why this option is not available.
Note: When I installed VS 2015 some of the features were not properly installed, well I installed some of those packages which I required from time to time. Now there are still a couple of packages missing. One is Microsoft report viewer add-on for visual studio 2015. I searched for this add-on on the internet but I wasn't able to locate it.
I also installed report viewer runtime as I was missing assembly dll(s) for adding reference to Microsoft.ReportViewer.WinForms.
I have attached some screenshots for reference.
vs-error-log
installed-packages
p.s. if you think that this is a possible duplicate, well I tried a couple of answers already on stack overflow which didn't worked in my case. That's why I am posting a separate question.
I had this problem and solved it by the following:
Get the nugget package for the Microsoft Report Viewer 2015
a. Right click the project and choose Manage NuGet Packages
b. Click on the browse tab
c. The package used was Microsoft.Reportviewer.2015 by AdrienGuillerot v12.0.2.2402
Add the report viewer to your toolbox.
a. Right Click, then Choose Items...
b. Browse to the dlls in the package.
Put the control in 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);
Anyone used ZedGraph in VS2012 ?? When i try load component i get error message that "There are not Component in zedgraph.dll that can be placed on toolbox".
I can't find info does zedgraph works on VS2012.
Please recommend me some library to plot graph of math functions, thx
You first need to add the ZedGraphControl to your toolbox. The instructions on the Zedgraph CodeProject page works for Visual Studio 2012 as well:
ZedGraph is accessible as a control from the control toolbox in Visual Studio .NET. To access ZedGraph, first launch Visual Studio .NET, and create a new Windows Application (Forms) project. Open the form design so that it appears in the current window. View the toolbox using the View/Toolbox menu command. Right-click inside the "General" or "Components" sub-pane of the tool box, and select the "Choose Items..." option. Click "Browse...", and navigate to the ZedGraph.dll file. Once this file is added, you should see a ZedGraphControl option in the toolbox.
If you want to use an alternative charting library, please be aware that .NET 4 and later contains the .NET Charting library for Windows Forms out-of-the-box, see here.
Just go to nuget package manager console and:
Install-Package ZedGraph
It will install what you need and it will be working