mitesh shah

mitesh shah

  • NA
  • 1
  • 1.1k

pdf using Razorpdf in Asp.netMvc - Pdf.js could not b loaded

Oct 14 2014 6:59 AM
Hi all,
 
I am trying to create a pdf using RazorPdf as guided in the link.
 
http://www.c-sharpcorner.com/UploadFile/riyazakt/create-pdf-using-razorpdf-in-Asp-Net-mvc/ 
 
Everything on the controller end works fine. Also the Pdf screen appear but hangs.
After using firebug i got the following error. (shown in the image)
 
I then downloaded the Pdf.js from net and added reference to my view but still I am getting the same error.
Could someone please guide me on this.
 
I managed to create a pdf using iTextSharp but it seems that it is a very old code and I might get into issues later. 
 Here's the link for that in case some1 would like to have a look.
  http://www.codeproject.com/Articles/260470/PDF-reporting-using-ASP-NET-MVC?fid=1654861&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26