Open oyin-s opened 9 years ago
There's a discussion thread around here somewhere that indicates this issue is caused by using an incorrectly formatted Layout. Try using the _PdfLayout.cshtml from the sample web site and see if that makes the error go away.
Did you find the solution for this? I am having same issue.
in case anyone still has this issue, this error happens to me when using any form of HtmlHelper, i had to remove all usages of @Html
and @helper
.
Also, try to move as much logic as possible into the model or controller if you have some in the view.
The is VERY COMMONLY due to non-strict html that's NOT 100% valid xml.
This means EVERY tag must have a closing tag, or be self closing:
<br>
will cause this error, but <br />
won't.
Same for inputs, img, hr, etc.
hi, i keep getting this error The document has no pages The page is a replica of MVC Details page this is my code
public ActionResult CreatePDF(int? id) {
}
Am i missing something? pls help