1

I have to learn some things abount Open XML SDK, working with C#. Things like @Ahmad Mageed answered here: Insert OpenXmlElement after word bookmark in Open XML SDK

I'm in a similar situation, but in my case I need to insert text or elements inside the bookmark...(not after it)

Need some help please. (Sorry for my English) Thanks.

Community
  • 1
  • 1
Displaying
  • 117
  • 3
  • 8

1 Answers1

3

Absolutely. Check out the "Bookmarks" section on Eric White's article Inserting / Deleting / Moving Paragraphs in Open XML Wordprocessing Documents.

Here's a way to insert between bookmarkStart and bookmarkEnd: Replace bookmark text in Word file using Open XML SDK

Community
  • 1
  • 1
Todd Main
  • 28,951
  • 11
  • 82
  • 146
  • But what i need is c# code using the "Open XML SDK" The perfect example is the one I mention, but putting the elements after the bookmarks doesn't help for me. ThankU @Otaku – Displaying Mar 15 '11 at 08:05
  • @Dislaying: Got it. There's a link I've put above that should get you all the way there. – Todd Main Mar 16 '11 at 21:44