Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Edit Ms Word documents with C#, without using Microsoft.Office.Interop.

Posted on 2010-09-13
6
Medium Priority
?
690 Views
Last Modified: 2012-05-10
Hello

I want to create a document word from another one (copying a document) with replacing some strings in the old one with another strings. So, I get, in the end, a new document that has the same content as the first one except the replaced strings.
I have to do this without using Microsoft.Office.Interop;
Thank you.
0
Comment
Question by:pgirardier
  • 3
  • 2
6 Comments
 
LVL 21

Accepted Solution

by:
chapmanjw earned 1500 total points
ID: 33664448
You could do this with the Open XML SDK 2.0 for Microsoft Office http://msdn.microsoft.com/library/bb448854(office.14).aspx
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 500 total points
ID: 33664556
0
 

Author Comment

by:pgirardier
ID: 33664582
I have to edit Ms Word 2003 and Ms Word 2007 documents, is it possible with Open XML SDK 2.0 ?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 21

Assisted Solution

by:chapmanjw
chapmanjw earned 1500 total points
ID: 33664587
Only 2007 documents will work with the SDK.
0
 

Author Comment

by:pgirardier
ID: 33666263
Is there another way to do this without  using  paid  tools ? It must  works for  Word 2003 and  Word 2007
0
 
LVL 21

Assisted Solution

by:chapmanjw
chapmanjw earned 1500 total points
ID: 33666296
Unfortunately, no.  Word 2003 is a proprietary format that requires licensing.
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question