andyhutch77 / MvcRazorToPdf

Create pdf documents within an asp .net mvc project by generating your views as normal but returning a PdfActionResult. This converts regular produced razor/html to pdf documents in the browser using the iTextXmlWorker.
125 stars 105 forks source link

Error! #26

Closed MustafaCali closed 9 years ago

MustafaCali commented 9 years ago

Error 1 'System.Web.Mvc.ControllerContext' does not contain a definition for 'GeneratePdf' and no extension method 'GeneratePdf' accepting a first argument of type 'System.Web.Mvc.ControllerContext' could be found (are you missing a using directive or an assembly reference?) How can I resolve the problem?

ShaneRoode commented 9 years ago

All I did to fix this issue was to click "Show All Files" in solution explorer and then include MvcRazorToPdfExtensions.cs into the project.

MustafaCali commented 9 years ago

thanks :)