Click here to Skip to main content
15,867,704 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more:
I want to open word document inside form it will work on my machine but after publish word file open separately.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Aug-14 3:39am    
Word is a proprietary product. Why do you think there is any Word software to be embedded in your application?
—SA

1 solution

I'm guessing that you're using the InterOp library, which requires that the various Office applications are resident on the system that is executing the application code. Microsoft has made clear that this library should only be used for local machine development (ie Windows applications) and should not be used for Web applications.

For Web Applications you can replicate this behaviour using the DocumentFormat.OpenXML library. You will need to download the extension for it here: https://www.nuget.org/packages/DocumentFormat.OpenXml/[^]

There are some tutorials for use around the web.
 
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