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

"The document has no pages" but only from test server #51

Open stevewash123 opened 8 years ago

stevewash123 commented 8 years ago

When I run my project locally, I have no issue. When I deploy to our test server, I get "The document has no pages". In both cases, I am logging the data retrieved from the database prior to adding it to the Model, and there's no difference. Suggestions?

tajuddin335 commented 7 years ago

I am getting the same message when try to print pdf using simple block ViewBag.Message = "Your contact page."; var contact = new Country() { Name = "John Doe", ShortCode = "118220202020" }; return new PdfActionResult(contact);