razorpdf

Could not load file or assembly 'itextsharp' or one of its dependencies

只愿长相守 提交于 2021-02-05 07:01:07
问题 Trying to follow this tutorial for RazorPDF, and I don't know why am I getting the following error message: Very frustrated and tired. Error Message: Could not load file or assembly 'itextsharp' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) itextsharp: RunTimeVersion: v1.1.4322 Version: 4.1.2.0 RazorPDF: Run Time version: 4.0.30319 Inside the controller: public ActionResult Index() { var

Could not load file or assembly 'itextsharp' or one of its dependencies

断了今生、忘了曾经 提交于 2021-02-05 07:01:02
问题 Trying to follow this tutorial for RazorPDF, and I don't know why am I getting the following error message: Very frustrated and tired. Error Message: Could not load file or assembly 'itextsharp' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) itextsharp: RunTimeVersion: v1.1.4322 Version: 4.1.2.0 RazorPDF: Run Time version: 4.0.30319 Inside the controller: public ActionResult Index() { var

Where can I find an iText xml reference?

风流意气都作罢 提交于 2019-12-23 10:57:12
问题 I am evaluating the use of RazorPDF as our reporting solution. For some reason, I cannot find any iText XML reference, beside a few examples. There are plenty of example for the Java or C# API, but nothing regarding the XML itself. Does such reference exists or do I have to figure it our from the examples? 回答1: Please read Where can I find itext.dtd? I'm the original developer of iText and I'm also the one who once upon a time, long ago, wrote the DTD for the iText XML files. That was even

Open <anchor> with target=“_blank”?

微笑、不失礼 提交于 2019-12-11 05:29:32
问题 I am using RazorPdf to generate a .pdf document from one of my controller actions. All works well, except that in my generated .pdf, I have an embedded anchor that opens yet another .pdf, that resides on the web site. Currently, if the user clicks the anchor, the referenced .pdf opens in the same browser window . I don't want this behavior . I want anchor to open in a new browser tab (e.g. target="_blank"), but can't see any way to accomplish this. Here's my anchor in my view: <!-- Note:

Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.5.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'

女生的网名这么多〃 提交于 2019-11-29 08:39:23
see this link converting html to pdf I got this version error in webconfig let some genius find and solve the qustion. My Model public class Customer { public int CustomerID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } My Controller this is normal code public ActionResult Index() { List<Customer> customers = new List<Customer>(); for (int i = 1; i <= 10; i++) { Customer customer = new Customer { CustomerID = i, FirstName = string.Format("FirstName{0}", i.ToString()), LastName = string.Format("LastName{0}", i.ToString()) }; customers.Add(customer);

Error converting MVC4 view to PDF with Rotativa or RazorPDF

安稳与你 提交于 2019-11-28 10:48:02
问题 I am trying to convert a MVC4 view to Pdf. after a few minutes searching I found https://www.nuget.org/packages/Rotativa/ and https://www.nuget.org/packages/RazorPDF both give me the same problem that will be explained below: I installed Rotativa 1.6.1 via nuget in a Mvc4 project. my example action method looks like this: [HttpGet] public ViewAsPdf TestPdf() { return new ViewAsPdf("TestPdf"); } my example view is structured in the following manner: @{ Layout = null; } <!DOCTYPE html> <html>

Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.5.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'

£可爱£侵袭症+ 提交于 2019-11-28 02:16:31
问题 see this link converting html to pdf I got this version error in webconfig let some genius find and solve the qustion. My Model public class Customer { public int CustomerID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } My Controller this is normal code public ActionResult Index() { List<Customer> customers = new List<Customer>(); for (int i = 1; i <= 10; i++) { Customer customer = new Customer { CustomerID = i, FirstName = string.Format("FirstName