Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate PDF in .Net core 2.0 using rdlc

With .Net Core 2.0 not supporting Report Viewer, is there any other alternative way of doing this?

I found alanjuden's solution (https://alanjuden.com/2016/11/10/mvc-net-core-report-viewer/), but actually looking for official references.

We have migrated our project from .Net Framework 4.5.2 to .Net Core 2.0. However, stuck up with these reporting files as core 2.0 doesn't support.

Any suggestions?

Thanks in advance.

like image 249
Neelima Ediga Avatar asked Mar 06 '18 23:03

Neelima Ediga


People also ask

How do I create a report in .NET core?

Select FILE | New | Project in the main menu or press CTRL+SHIFT+N to create a new project. Select Reporting Application from the NET Core category in the invoked DevExpress Template Gallery. Select the framework version and click Create Project. Set Add Designer Page to true to add the Report Designer (the Designer.


2 Answers

I found this package useful. I have successfully created a pdf using the RDLC using this library. I'm hoping to write a blog post on that soon. https://www.nuget.org/packages/AspNetCore.Reporting

However there's a major issue in this library where when you have multiple files it doesn't work properly. It uses some internal caching so whatever the first requested rdlc file only will work.

Update: I have written an article on how you can integrate this library to generate a pdf. Please check this link. http://blog.geveo.com/IntegratingRDLCReportsToNetCoreProjects

like image 71
Tharindu Jayasinghe Avatar answered Oct 05 '22 16:10

Tharindu Jayasinghe


Look at this answer, it might help you. RDLC Local report viewer for ASP.NET Core and Angular(>2.0) It looks like Microsoft is working on it (or better spending on it, but no official packages seems to be available just yet).

Other references can be found here: https://github.com/aspnet/AspNetCore/issues/1528

Where they mention PDF libraries and export functionalities

Another library that might help you: https://www.nuget.org/packages/AspNetCore.Reporting

Commercial solution: https://help.syncfusion.com/aspnet-core/reportviewer/getting-started

Other possible duplicates:

  • Rendering .rdlc reports with ASP .NET Core
  • Microsoft LocalReport (rdl) in ASP.NET Core MVC App
like image 30
Norcino Avatar answered Oct 05 '22 16:10

Norcino