相关疑难解决方法(0)

如何使用iTextSharp将HTML转换为PDF

我想使用iTextSharp将以下HTML转换为PDF,但不知道从哪里开始:

<style>
.headline{font-size:200%}
</style>
<p>
  This <em>is </em>
  <span class="headline" style="text-decoration: underline;">some</span>
  <strong>sample<em> text</em></strong>
  <span style="color: red;">!!!</span>
</p>
Run Code Online (Sandbox Code Playgroud)

c# pdf-generation itextsharp xmlworker

66
推荐指数
3
解决办法
20万
查看次数

C#:无法从程序集加载类型

在将Lucene.net和Lucene.net Contrib添加到C#MVC3后,我在第一次成功运行后收到以下消息.收到此错误后,我需要完全擦除C:\ Users\Me\AppData\Local\Temp\Temporary ASP.NET Files,然后才能再次运行该项目.

我已经尝试手动删除Lucene文件(包括我的项目中的引用),并重新安装它们 - 使用NuGet和手动 - 但它总是相同的情况; 项目运行一次后,我开始收到以下错误:

注意:Contrib.Regex是Lucene.net Contrib的一部分.

Server Error in '/' Application.

Could not load types from assembly Contrib.Regex, Version=2.9.4.0, Culture=neutral, PublicKeyToken=85089178b9ac3181, errors:
Exception: System.IO.FileLoadException: Could not load file or assembly 'Lucene.Net, Version=2.9.4.1, Culture=neutral, PublicKeyToken=85089178b9ac3181' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Lucene.Net, Version=2.9.4.1, Culture=neutral, PublicKeyToken=85089178b9ac3181'

=== Pre-bind state information ===
LOG: User = rcw7\Me
LOG: DisplayName = Lucene.Net, …
Run Code Online (Sandbox Code Playgroud)

c# windows dll lucene.net visual-studio

12
推荐指数
1
解决办法
2万
查看次数