Free Support Forum - aspose.com

Reading Html

Hi,

I am trying to use Aspose Word to read html document. Is it possible? Not writting to html or writting to Words. What will be returned in range.text? the content as displayed by the browser or including all the tag in some objects?

I try with some html. Some seems ok. But some thrown error.

Thanks

Shu Yih

Hi,

Thank you for considering Aspose.

Surely, HTML import is supported by Aspose.Word. Range.Text does not include HTML tags, it always contains just plain unformatted text of some node (including the whole document itself).

You can refer to this spreadsheet to obtain information about supported/unsupported HTML elements:

http://www.aspose.com/Products/Aspose.Word/Aspose.Word.Converters.xls

Please post or attach problematic HTML to let us reproduce the issues.