Reporting template not available in Visual Studio 2015 C# - c#

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);

Related

Report viewer tag missing in toolbox Visual Studio 2015

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

Report viewer in Visual Studio 2015 C#

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);

ZedGraph doesn't works in Visual Studio 2012

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

How to install a custom control MS VS 2010

I am using MS VS 2010.
I can not for the life of me find any instructions on how to install something like this to use on Microsoft Visual Studio 2010.
I was wondering how to install and use this control in this version of MS VS with C#.
http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx
I am making a very dynamic page with a lot of post backs and I think this has great potential!
I need to know how to get this one working bolded below:
Download (V2.2):
The sourcode is available in C# as a VS.NET project (Wont convert for
me)
A ready-to-use assembly (including help file). A demo shows the usage of this control. Sourcecode for this Demo (C#) or Sourcode for
the Demo (VB)
Any help would be greatly appreciated I can't find much information on this on the web. Perhaps I am using the wrong keywords... I am stuck on this at work for the time being and no-one here can help. Its become one of those aggravating programming moments were the fun is wearing off!
I saw one other post on here "Install Custom Control in VS Toolbox" But he too has no luck and I wasn't really looking to install it with a program. I swear I did this long ago with 2008 in college just through a process with MS VS.
Thanks
You need to store the assembly somewhere (we usually store them in an assemblies folder relative to the project), then add a reference to that assembly.
If the assembly supports being added to the toolbox, you can drag the assembly from windows explorer and drop it on the toolbox and it will automatically add all of the appropriate designable items to the toolbox. It is best, if you do this, to create a new tab to hold these items (right-click in the toolbox and select Add Tab).
If the assembly does support addition to the toolbox, your next step is to drag the item from the toolbox onto the page or control and visual studio should take care of wiring it up.
Otherwise, you will need to follow the instructions on the website or copy details from the sample projects to configure the control in your page.

DevExpress Toolboxes don't get created on Visual C# Express

I installed DevExpress v2011 vol 1 on my Win7-32 Home Premium computer running Microsoft Visual C# 2010 Express.
The DevExpress controls do not appear in the ToolBox. I tried running the ToolboxCreator program with logging, and it resulted in:
VS 2005 not found
VS 2008 not found
VS 2010 not found
It looks like I can manually add DevExpress controls to the ToolBox by doing the "Choose Items..." method and selecting a DevExpress tool, but that's a lot of controls, and even though I specified to only install the WinForm controls, it looks like a lot of web controls are there, too.
Is this the way I have to do it, or is there a better way?
It seems like this is a known problem according this post. The post acknowledges issues with VS Express, and links to this support article. Unfortunately, it says:
It is possible to use our ASP.NET and WinForms products in Express Editions, but you will have to manually add the required product items to your Toolbox. This can be done via the "Choose Items..." command of the Toolbox' context menu as described bellow.
So, sorry, there doesn't seem to be an easier way; I am guessing DevExpress themselves would be suggesting it if there were.
I resolved the issue in the following manner. I ran the devexpress toolboxcreator. But after that the toolbox was still abscent any devexpress controls. Then I right clicked the toolbox and selected 'Reset toolbox'. Maybe that would have worked if i'd tried it first, but it did the trick for me!
Note that if you use 60 free DevExpress controls then you should use only DevExpress.Utils.v11.2.dll and DevExpress.XtraEditors.v11.2.dll (for winforms) like in this video http://www.youtube.com/watch?v=QovScQvyvNM
DevExpress Controls not showing up (disable) in Visual Studio toolbox:
This issue was caused by the application Target Framework being set to .Net Framework 2.0
once the Target Framework was changed to 4.0, the controls became available in the Toolbox.
To change the Target Framework in Visual Studio:
For VB.net:
Right click the project in the Solution Explorer and click Properties...
On the Compile tab, click the Advanced Compile Options... button
Change the Target framework (all configurations) to .NET Framework 4.
For C# .net:
Right click the project in the Solution Explorer and click Properties...
Click the Application tab and change the Target framework to .NET Framework 4.
After that you need to repair toolbox by right clicking on toolbox tab, where controls exist.
Visual Studio will close automatically and will reopen after some configuration will apply.
Now you will find all devExpress Controls available on toolbox..

Categories