Solved

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

Posted on 2010-09-13
6
566 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 375 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 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 125 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 21

Assisted Solution

by:chapmanjw
chapmanjw earned 375 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 375 total points
ID: 33666296
Unfortunately, no.  Word 2003 is a proprietary format that requires licensing.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Runtime Error 2 28
Exit the loop 4 37
Delete inline shapes featuring a specific width using VBA 13 44
Video Player 2017 5 14
I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.

867 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now