Base solution for your next web application
Open Closed

Use of MvcRazorToPdf #2180


User avatar
0
maikeloh created

I try to use this library to generate pdf but will like to know best aproach to correctly get access to System.Web.Mvc.ControllerContext required to call GeneratePdf method. I need to generate pdf from AppService or inside a DomainService.

thanks in advantage


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You need to reference System.Web and access HttpContext.Current. Alternatively, you can use some other tools like this one <a class="postlink" href="http://wkhtmltopdf.org/">http://wkhtmltopdf.org/</a> if you are generating PDF files from your pages.