HTML to RTF .Net is a native C# component to convert HTML to RTF, DOCX and Text formats, merge and replace RTF documents.
  Overview | Getting Started | Code Samples | FAQ | History | License | Purchase | Support and Contacts

Getting Started

You can easily use «HTML to RTF .Net» in any .Net Framework or .Net Core application. Because of the component is completely written in C# managed code.

Let us say, you have just created a .Net Core project. To configure «HTML to RTF .Net» in your prject, make these steps:

  1. Add the reference to SautinSoft.HtmlToRtf.dll.
  2. Add dependencies through Nuget (optional). This step is necessary only for .Net Core and only when you have added the .dll manually without using Nuget.

1. Add the reference to SautinSoft.HtmlToRtf.dll:

You may add the reference to the SautinSoft.HtmlToRtf assembly by two ways:

1. Nuget (fast way):

(Solution Explorer->right click by "References"->Manage Nuget Packages...->In the tab "Browse" type "SautinSoft" and find the "SautinSoft.HtmlToRtf")
Add SautinSoft.HtmlToRtf.dll via Nuget.

2. Old good way by adding the reference:

First of all, download the «HTML to RTF .Net» package (htmltortf_pro_net.zip) from the SautinSoft website.
Unzip htmltortf_pro_net.zip and find the assembly file "SautinSoft.HtmlToRtf.dll".
(At the Solution Explorer->right click by "References"->Add Reference...->Browse "SautinSoft.HtmlToRtf.dll")
Add reference to SautinSoft.HtmlToRtf.dll.

Note:

SautinSoft.HtmlToRtf.dll compiled for .Net Core is located inside (htmltortf_pro_net.zip->HTML to RTF .Net X.X\Bin\Net Core X.X) folder.

SautinSoft.HtmlToRtf.dll compiled for .Net Framework is located inside (htmltortf_pro_net.zip->HTML to RTF .Net X.X\Bin\Net X.X) folder.

2. Add dependencies through Nuget (optional):

If you have added the SautinSoft.HtmlToRtf.dll into your project in previous step 1 through Nuget, all dependencies are already installed automatically and therefore simply skip this step. If you are creating a .Net Framework (not .Net Core) app, also skip this step.

In case of you have added the reference to the SautinSoft.HtmlToRtf.dll by the old way (Solution Explorer->right click by "References"->Add Reference...), please add these dependencies using Nuget:

  • System.IO.Packaging, 4.3.0.
  • System.Text.Encoding.CodePages, 4.3.0.
  • ZKWeb.System.Drawing, 3.0.0.

For example, to add "System.IO.Packaging, 4.3.0:
(Solution Explorer->right click by "References"->Manage Nuget Packages...->In the tab "Browse" type "System.IO.Packaging" and find the "System.IO.Packaging", select version "4.3.0")

Well done!

Now your application is able to convert HTML to RTF, DOCX and Text documents!

Here we've prepared for you the list with code examples for «HTML to RTF .Net» (C# and VB.Net).