OpenXML word template multiple pages

Home Forums WordprocessingML OpenXML word template multiple pages

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

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

    sprasanna_89
    Participant

    Hello,

    I have a one page word document template which has lot of bookmarks and I have a table in the center of page. As of now I am able to accommodate only 5 rows in to the table.If it goes beyond 5 rows the rest of the rows are not visible. I am trying to clone the first page and paste it in the second page (before replacing the bookmarks) and then populate the tables.But the xml file is corrupted and I am getting a warning when i open the word. Second approach I tried to have 3 page template (knowing that I will have max of 15 rows) when I have less than 10 rows delete thrid page and when it is less than 5 rows delete second and third pages. I was able to delete it using the code in
    http://debugitalready.blogspot.co.uk/2013/07/how-to-delete-all-contents-inside-word.html
    but all the formatting gets lost. Please give some ideas on how to proceed. Your help is much appreciated.

    #3642

    Eric White
    Keymaster

    Hi,

    It sounds as though your project is an ideal one for DocumentAssembler, which is a module in Open-Xml-PowerTools that enables document assembly.

    DocumentAssembler Developer Center

    Take a look at the screen-casts at the above link, and see if this is a good direction for you to go.

    -Eric

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

You must be logged in to reply to this topic.