How to print report in pdf?
Ask by Sushant Mishra
Updated 12 May 2026
In ASP.NET Core MVC, the most common way to print/export reports as PDF is using a PDF library like:
For MVC Razor report printing, I recommend DinkToPdf.
Step 1: Install Package
Download wkhtmltopdf native library from
wkhtmltopdf official site
Put DLL in:
Step 2: Register Service
Program.cs
Step 3: Create PDF Service
PdfService.cs
Step 4: Register Service
Program.cs
Step 5: Controller Action
ReportController.cs
Step 6: Print Button
View
If Using Razor View as Report
Render View → Convert HTML → Generate PDF
Example:
(If using Rotativa)
Official docs:
Rotativa.AspNetCore GitHub
Best Choice
For your production MVC Core app:
There are many method to do this.. I am telling you one of it
First install rotativa and include assembly
then use it as shown in code
I hope this will helps you