Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am trying to convert ms word to html page.
but i got error as below. can anybody help me to solve this problem.
I have also licence of ms office 2007 in my server.

This command is not available because no document is open. at Microsoft.Office.Interop.Word

Find out all coding which i am using please find below link

qhengineerszone.com/ja.aspx
Posted
Comments
F-ES Sitecore 1-Jul-15 6:20am    
I wouldn't bother trying to fix this, automating Word isn't supported in ASP.net and it's not going to work reliably. Use a third party component like Aspose, DocX, Open XML SDK etc.
Member 4463638 1-Jul-15 7:22am    
what is third party component like Aspose, DocX, Open XML SDK etc.

how can i use?
virusstorm 1-Jul-15 7:45am    
They are libraries that are other open source or commercial that provide ways to interact with Microsoft Office files. Google each one, compare the pros and cons to your situation and select one. They all have sample code to show you how to work with the files and the commercial products usually have a trial so you can see if it will work for your needs.

1 solution

Either do these things using third party components or Open XML SDK[^].

Refer - Transforming Open XML WordprocessingML to XHTML Using the Open XML SDK 2.0[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900