Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Sat Oct 15, 2011 11:34 pm

Hello All,

I am using the Spire.Doc in order to create an html file out of a word document, so by just converting the word document to HTML following the sample provided in the demo of this site. However, if I try to reopen the resultant html file, I get the following error: The required attribute 'alt' is missing.

I believe that the tool should at least be able to open the html file it creates. Note that the word document contained an image, this is why the alt error gets generated. How can I solve this issue? I need to be able to open the html file and display it on the browser.

Your help is much appreciated.


Posts: 4
Joined: Sat Oct 15, 2011 11:27 pm

Mon Oct 17, 2011 6:42 am

Hello lbassil,

Sorry for any inconveniences caused by us and thank you for your patience with our reply.

If you want to load a html file which is out of word file, you can reopen the html file like this:
document.LoadFromFile(@"..\..\WordToHtml.html", FileFormat.Html, XHTMLValidationType.None);
if you still have any questions, please don’t hesitate to contact us.
Have a nice day.
Technical Support/Developer,
e-iceblue Support Team
User avatar

Posts: 152
Joined: Tue Sep 13, 2011 5:37 am

Return to Spire.Doc