DOcuments saved from the above code get saved as a Web Page format in
Word (HTML Document). It seems ASPOSE doesn’t like this format. Is
there a different way of loading this type of document format?
For the time being we are telling our users to re-save (save as) the
documents as an actual word document, which works perfectly. But that’s
a short-term fix that we would like to avoid at all costs.
We don’t like telling users to: “oh to do this, you need to do
this”. It should just work. Is there another way of importing
this document into ASPOSE? We will not use any API calls to the Word
object as that is very inefficient, and can crash at any time seeing
word is as stable as a house built on chopsticks.
Please attach the document in question, so that we could investigate the case. Don’t worry about privacy - the forums are configured so that the attachment file would be visible only to Aspose team members.
To put it simply:
At the moment Aspose.Word can only reliably load HTML that was created by Aspose.Word or simpler HTML. Aspose.Word cannot really load HTML produced by MS Word because it produces pretty complex HTML.
In your case it throws probably because some measurement is specified in percent or on inches or whatever. Aspose.Word supports only measurements specified in pixels in HTML.
We will gradually improve HTML import to allow full HTML and CSS import. There is no hard estimate on this, it will evolve over the following months.