Welcome Guest Search | Active Topics | Sign In | Register

MVCToPDF.RenderAsPDF() not rendering the PDF! Options
SK
Posted: Thursday, March 17, 2016 6:57:53 PM
Rank: Newbie
Groups: Member

Joined: 3/17/2016
Posts: 9
I am using the latest stable version of EO pdf to generate PDF file from my MVC5 app (dot net 4.5).

My code is simple as this

Quote:
public ActionResult Print(string id)
{
HtmlToPdf.Options.MinLoadWaitTime = 4000;
MVCToPDF.ResultAsDownload = false;
MVCToPDF.RenderAsPDF();
return View();
}


But I get an error saying Failed to Load PDF document (Chrome browser).

What am i doing wrong ?
eo_support
Posted: Friday, March 18, 2016 8:03:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We can't tell anything just from the picture. Can you isolate the problem into a test project and send us the test app? See here for more information on sending test project to us:

http://www.essentialobjects.com/forum/test_project.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.