Format one word document like another RRS feed

  • Question

  • Hello,

    I have a requirement to format a word document (.docx) to make it look like another. I will have documents from 2 different sources. Format of the document I receive from source 1 is the standard. I will have to format the document I receive from source 2 so that it completely looks like the first document.. e.g.: the header style, table styles, paragraph fonts, page header/footer etc.

    Is there an option via OpenXML sdk or any other component so that I can copy styles from one document and apply onto another?

    Thanks in advance.

    Friday, October 5, 2018 3:13 PM


  • Hi Jahedur,

    You could via the Open XML SDK to copy styles from one document and apply onto another. Please see the following link:

    How to: Replace the styles parts in a word processing document (Open XML SDK)

    Hopefully it helps you.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    • Marked as answer by Jahedur.Rahman Wednesday, October 10, 2018 9:48 PM
    Monday, October 8, 2018 9:44 AM

All replies