MvcRazorToPdf icon indicating copy to clipboard operation
MvcRazorToPdf copied to clipboard

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

Open stevewash123 opened this issue 8 years ago • 1 comments

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?

stevewash123 avatar Oct 04 '16 21:10 stevewash123

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);

tajuddin335 avatar Feb 15 '17 04:02 tajuddin335