How to print report in pdf?

Total Post:19

Points:135
C#
 658  View(s)
Ratings:
Rate this:
I want to print report in pdf format in MVC.  Please help ..thanks in advance
  1. Post:13

    Points:91
    Re: How to print report in pdf?

    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




    using Rotativa; 
    public ActionResult PrintAllReport()
      {
       var report = new ActionAsPdf("Index");
       return report;
      }

    I hope this will helps you

      Modified On Apr-11-2018 11:24:45 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!