Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Dear team

I have upload some word documents on my server (using IIS) now I want to edit them, my client machine already have Microsoft word installed on them.

How can I edit word files using asp.net

Thanks

Prasad

What I have tried:

Now I have shared server directory (where files are stored) and open that files directly using Window.Open method of javascript, but I don't want to share server folder.
Posted
Comments
Mehdi Gholam 19-Jul-17 1:26am    
I wrote a small app in .net that downloads the docx file, opens Word, and uploads the completed docx when Word closes.
koolprasad2003 19-Jul-17 2:57am    
Can you share that snippet, so that I can test.
Mehdi Gholam 19-Jul-17 5:40am    
Unfortunately not since it is part of a clients application, but it is simple enough.
koolprasad2003 19-Jul-17 7:19am    
ok..
can I have a logic behind it so that I can try. I have wrote same code in C# winform application and it works fine, but now I want to do it in ASP.NET
any help would be really great for me.
Mehdi Gholam 19-Jul-17 7:28am    
What I did:
- on the server created a json file with the url to the docx file and other info like title, and upload url etc.
- the client in the browser download the json file as a .myext file (your choice in extension)
- the browser auto opens the .myext file withe the app
- the app downloads the docx file and waits till the editor temp filename closes then uploads to the server

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