Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI,
Can anyone provide me the C# code to conver Doc to Docx in ASP.NET web application?

Thanks in Advance
Posted
Updated 18-Feb-15 0:06am
v3
Comments
Deepu S Nair 18-Feb-15 6:07am    
What have you tried so far?
Abigaill 9-Mar-17 9:15am    
This tasks becomes very simple if you can use a C# Word library.
All you need to do is this:

DocumentModel.Load("Input.doc").Save("Output.docx");

You can also do this to stream (aka download) an "Output.docx" file to your ASP.NET application's client:

DocumentModel.Load("Input.doc").Save(this.Response, "Output.docx");

1 solution

 
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