How to Print a report in mvc in pdf formate
Ask by Anonymous User
Updated 03 Jul 2023
Sure, here are the steps on how to print a report in MVC in PDF format:
Here is an example of the code:
C#
This code will add a PDF printer to your MVC project. The
PrintReportaction method will render the report to the PDF printer and return the view.Here is an example of the view that will generate the report:
HTML
This view will generate a report with three columns. The data for the report will be set in the code-behind file.

Subreport.rdlc
Mainreport.rdlc
PDF PRINT OUT
Code