Follow on Google News News By Tag Industry News News By Location Country(s) Industry News
Follow on Google News | Export Word to HTML – component for .NETElerium Software has introduced a new version of Elerium Word to HTML .NET component.
By: Elerium Software 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/ - 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[] { // Set License Code for Full Version // Document.SetLicenseCode(" // 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( // Save and Open result file File.WriteAllText( } } } VB.NET code: Imports System.Text Imports System.IO Imports Docs.Word Module Module1 Sub Main() ' Set License Code for Full Version ' Document.SetLicenseCode(" ' 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( ' Save result file File.WriteAllText( 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/ End
Account Email Address Account Phone Number Disclaimer Report Abuse
|
|