4 Replies Latest reply on Jul 22, 2011 9:38 AM by OliverJohn

    Applying Master Pages

    OliverJohn Level 2

      I want to apply Master Pages to a single document, using the StructMasterPageMaps table on that document's reference pages.


      I see the ApplyMasterPage method for a single page, but the only way I've found to use the page map is as part of a book update.


      My current workaround is to create a new book, add the file to that book, update the book with only the UpdateBookMasterPages parameter set to True, then close the book without saving it. This works well enough, but it just seems so hacky.


      Did I overlook something? Is there a better way to do this?