cost 212 ms
通过itextsharp和RazorPDF dll生成PDF时,如何设置列宽或其他属性或将CSS应用于表 - How can i set column width or other property or apply css to table while generating PDF through itextsharp & RazorPDF dlls

我在上面的Print.cshtml写道。 我的Controller Action方法如下。 生成下面的PDF。 但是表的第一列默认情况下太宽。 我想手动设置每列的宽度,但我无法做到。 我试图将CSS类应用于表,但是没有运气。 style="width:25% ...

使用 RazorPDF 创建 pdf - Create pdf with RazorPDF

我想用 RazorPDF 创建一个简单的 pdf。 我是从 Nuget Package 安装的。 (itexsharp 和 razorpdf 出现在参考中) 这是我的控制器: 而且,我有一个简单的视图显示“你好”。 当我使用return view() ,一切正常并显示“hello”,但是 ...

在MVC Web应用程序中要打印的PDF或文档 - PDF OR Document To Print in MVC Web application

在我的MVC应用程序中,当涉及到打印报告时,我几乎没有选择 RazorPDF-从cshtml本身处理设计的优势,并且可以将控制器的值作为模型传递 iTextSharp-从cshtml本身处理设计的优势,并且可以将控制器的值作为模型传递 pdfSharp-从cshtml页面处理设 ...

无法从程序集'itextsharp,Version = 5.5.5.0,Culture = neutral,PublicKeyToken = 8354ae6d2174ddca'加载类型'iTextSharp.text.html.HtmlParser' - Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.5.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'

看到此链接将html转换为pdf,我在webconfig中遇到此版本错误,让一些天才找到并解决了这个问题。 我的模特 我的控制器,这是正常代码 这是PDF转换控制器 我的webconfig ...

无法从程序集'itextsharp,Version = 5.5.3.0,Culture = neutral,PublicKeyToken = 8354ae6d2174ddca'加载类型'iTextSharp.text.html.HtmlParser' - Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.3.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'

我是asp.net mvc 4的新手。 我使用RazorPDF完成了一个简单的应用程序。 应用程序是以PDF格式显示普通页面。 我已经创建了一个新的应用程序,它运行正常。但是,当我在我的项目中实现时它不起作用并且给出错误, 因为无法从程序集'itextsharp中加载类型'iTex ...

需要从 mvc 渲染 html,只显示 htmls 标签而不是文本 - need to render html from mvc, only displaying htmls tags not text

我正在使用 razorpdf 在我的 mvc 4 应用程序中生成 pdf 报告。 每次我生成 pdf 时,描述字段都会显示一堆不应该显示的 html 标签和字段,我只想显示描述字段中的纯文本。 有没有人对如何做到这一点有任何建议,也有关于如何将图像添加到 pdf 页面的建议? 这是我生成pdf的观 ...

无法加载文件或程序集“itextsharp”或其依赖项之一 - Could not load file or assembly 'itextsharp' or one of its dependencies

尝试按照 RazorPDF 的本教程进行操作,但我不知道为什么会收到以下错误消息:非常沮丧和疲倦。 错误信息: 无法加载文件或程序集“itextsharp”或其依赖项之一。 定位的程序集的清单定义与程序集引用不匹配。 (来自 HRESULT 的异常:0x80131040) itext ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM