Copy/Multiple Paste

Home Forums WordprocessingML Copy/Multiple Paste

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 7 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4310

    david_n_m_bond
    Participant

    I have a requirement to copy an arbitrary range and paste it several times back into the document.

    This is possible in Word Interop using Selection.InsertXML()

    How would you go about doing this using OpenXML?

    #4311

    Eric White
    Keymaster

    Hi,

    The main issue is that the copied range may contain ‘interrelated markup’, such as references to images, smart art, comments, and even footmarks / endmarks.

    The best approach to copy and paste ranges is to use DocumentBuilder. Watch the screen-casts at the following link:

    http://www.ericwhite.com/blog/blog/documentbuilder-developer-center/

    Best, Eric

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.