Export Word to HTML – component for .NET

Elerium Software has introduced a new version of Elerium Word to HTML .NET component.
 
July 4, 2013 - PRLog -- Elerium Word to HTML .NET is a professional .NET component which enables C#/VB.NET/ASP.NET developers to convert a wide range of Word documents (DOC, DOCX and RTF) to HTML format from any .NET projects. Supported input formats: Word 97-2003, Word 2007 and above. Supported output formats: file, string, stream. The converting Word document to the memory stream is useful when it is needed to show the DOC, DOCX or RTF documents in the browser window without having MS Word installed. The installation package of the component contains C# and VB.NET samples for quick start. These samples show how to setup word documents before converting and how to use different options of converting process.

Elerium Word to HTML .NET is an independent .NET component that compatible with .NET 2.0 and higher and does not depend on third-party libraries and Microsoft Office Automation.

Key Features:
- Wide range of input Word documents (Word 97-2003, Word 2007+).
- Various output format of HTML: file/string/stream.
- Text formatting (Bold, italic, color, etc.)
- Paragraph formatting (line spacing, background, margins, borders, etc.).
- Page formatting (margins, width, height, orientation etc.)
- Tables, embedded tables and their properties.
- Can be used in order to show Word document on a web page.

How to use this component? It is very easy. The developer must perform three simple steps:
1. Add Elerium Word .Net component to the solution. Simply put Word.dll into /bin folder of the project.
2. Initialize the Docs.Word instance.
3. Call the conversion method.

For example, let’s take the docx document and convert it to HTML format:

C# code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Docs.Word;

namespace ConverterSample1
{
class Program
{
static void Main(string[] args)
{
// Set License Code for Full Version
// Document.SetLicenseCode("YOUR-LICENSE-CODE-HERE");
// Define names of source and result files
string SourceFileName = @"WordDoc.docx";
string OutputFileName = @"test.html";
// Convert from Word to Html string
string html = Converter.ConvertWordToHtml(SourceFileName, Encoding.Default);
// Save and Open result file
File.WriteAllText(OutputFileName, html);
}
}
}

VB.NET code:

Imports System.Text
Imports System.IO
Imports Docs.Word

Module Module1

   Sub Main()
       ' Set License Code for Full Version
       ' Document.SetLicenseCode("YOUR-LICENSE-CODE-HERE");

       ' Define names of source and result files
       Dim SourceFileName As String = "WordDoc.docx"
       Dim OutputFileName As String = "test1.html"

       ' Convert from Word to Html string
       Dim html As String = Converter.ConvertWordToHtml(SourceFileName, Encoding.[Default])

       ' Save result file
       File.WriteAllText(OutputFileName, html)
   End Sub

End Module

About Elerium Software

Elerium Software develops professional solutions for use in .NET projects (C#, VB.NET, ASP.NET) that aimed to read/write/convert different office/web documents and formats. Elerium Software components are based on the unique design and fast algorithms that allow being independent from the third-party applications and libraries.

For more information about the component please visit the product page:
http://www.eleriumsoft.com/Word_NET/WORD2HTML/Default.aspx
End
Source: » Follow
Email:***@eleriumsoft.com Email Verified
Tags:Word To Html, Net, c, Asp Net, Vb Net
Industry:Computers, Software
Location:luzern - Switzerland
Account Email Address Verified     Account Phone Number Verified     Disclaimer     Report Abuse
Elerium Software PRs
Trending News
Most Viewed
Top Daily News



Like PRLog?
9K2K1K
Click to Share