We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Trying to ID correct product

My company is looking at vendors to help with document conversion needs. Which of your products would be best to convert various documents (Word, PDF, Excel, EML, TXT, etc) into HTML?

Hi Andrew,


Thanks for your interest in our products.

We have a component named Aspose.Pdf for .NET which provides the capability to create and manipulate PDF files. It also supports the feature to transform PDF files to HTML format. For further details, please visit Convert PDF file into HTML format

Now concerning to your requirement of converting TXT file to HTML format, fist you need to convert TXT file to PDF format using Aspose.Pdf for .NET and then transform the newly created PDF file to HTML format. For more information, please visit How to Convert a text file to PDF

Whereas concerning to your query related to other file formats, my fellow workers from respective teams will share their comments, shortly.

Hi,


I would like to help you regarding Excel files (e.g XLS, XLSX etc.) to HTML format. Aspose.Cells does support to convert Excel files to HTML format, see the documents on supported file formats and conversions:
http://www.aspose.com/docs/display/cellsnet/Opening+Files
http://www.aspose.com/docs/display/cellsnet/Saving+Files

Thank you.

Hi Andrew,


Thanks for your inquiry and sorry for the delayed response. I am going to address your query about Aspose.Words.

Converting Microsoft Word documents to Html format: You can simply use the following two liner code to achieve this:

Document doc = new
Document(@“C:\Temp\in.docx”);

doc.Save(@"C:\Temp\out.html");


Converting TXT files to Html format: You can now load a text file directly into Aspose.Words' DOM and then export it to Html format by using the following code snippet:

Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();

loadOptions.LoadFormat = LoadFormat.Text;

Document doc = new Document(@"C:\Temp\in.txt", loadOptions);

doc.Save(@"C:\Temp\out.html");


PS: Please note that Microsoft Word formats and Html formats are very different. It's hard and sometimes impossible to preserve the exact formatting and structure of a word document when converting it to Html. Please read below the limitations when exporting documents to Html format:
http://www.aspose.com/docs/display/wordsnet/Save+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format

Best regards,