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.

Mon Jan 17, 2011 10:12 am

One of my friend give me a file in word2007, but the version of the word in my computer is word2003. When I launch it, it appears many messy codes. May I convert word2007 to word2003 via Spire.Doc?

tom
 
Posts: 14
Joined: Tue Nov 30, 2010 7:21 am

Mon Jan 17, 2011 11:10 am

Of course you can convert word2007 to word2003, but it will lose the new function or format in word2007.
You can use the following code:
Document document = new Document("the path of your word2007.doc");
document.Document.Properties.Version = DocumentVersion.Word2003;
document.SaveToFile("word2003",FileFormat.Doc);
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc