visual studio 2019 not show add new item Report rdlc
Asked Answered
N

5

6

I installed Microsoft Reporting Services Projects VS2019 extention and ssdt based on this link on vs 2019 : https://learn.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-ver15

I have wpf core project in vs 2019 , but when I right click and select add new item , there is not Report item to select. How can we add .rdlc file to wpf core project?

Neoterism answered 7/5, 2020 at 17:56 Comment(0)
N
9

I found it , we have to install Microsoft RDLC Report Designer extention on VS 2019. Now I have Report and Report Wizard items in add new item. https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftRdlcReportDesignerforVisualStudio-18001

Neoterism answered 8/5, 2020 at 6:2 Comment(2)
Even after insalling this, still cannot view the add an rdlc item optionGroomsman
@Groomsman the reason for this is that even though Microsoft is offering the ability to view and edit RDLC files in .NET 5+, the ability to actually add them will no longer be possible going forward. For now my solution is to add an existing RDLC file and edit from there.Odelsting
P
3

You have to install this component separately after installing 2019.

Once VS2019 is installed.. go to Tools -> Get tools and Features. Search for Reporting Services and install it.

Then you can create new SSRS projects

Piwowar answered 7/5, 2020 at 23:49 Comment(2)
I don't want to create ssrs project. I only want to add a rdlc file to my wpf core project and print it.Neoterism
maybe if you install the above add on, then it might be available when you add a new item? If not, I'll just delete my answerPiwowar
S
3

From Visual Studio Extensions Menu => Manage Extensions => Search for RDLC =>Install => close and open your visual studio

Schuh answered 9/9, 2021 at 7:33 Comment(0)
G
2

I had the same exact problem. Here is a workaround: Create an xml file containing the following minimal content. Then change the extension of the file from MyReport.xml to MyReport.rdlc in order to have rdlc extension.

<?xml version="1.0" encoding="utf-8"?>
<Report 
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" 
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

<Width>6.5in</Width>
<Body>
 <Height>2in</Height>
</Body>
<rd:ReportTemplate>true</rd:ReportTemplate>
<Page>
</Page>
</Report>

I came to this solution, after installing all suggested tools/templates, still could not view the option/button to add a rdlc tool.

Using this technique you can now open/edit the file in the reportViewer Designer inside Visual Studio 2019

PS: This solution applies to .net 5 projects, and .net core 3.1 projects also, has chance to work on .net core 2.x project (didn't test this last).

Groomsman answered 23/12, 2020 at 15:23 Comment(0)
W
0

Well.. after searching a lot, i installed Visual Studio 2015. create a winform project and added it to my Project in Visual Studio 2019

I can create datasets, rdlc report, just in this winform project, and then i add it to my wwwroot folder

My project, and the winform project at the bottom

Wink answered 31/5, 2022 at 21:13 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Deneb

© 2022 - 2024 — McMap. All rights reserved.