Solved

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

Posted on 2010-09-13
6
631 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 70

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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
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.

622 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