Skip navigation
RonXyzzy
Currently Being Moderated

body -> Master page

Apr 19, 2013 10:37 AM

In framemaker FDK, how does one associate the body page to a master page? please send code snippet.

 
Replies
  • Currently Being Moderated
    Apr 19, 2013 8:16 PM   in reply to RonXyzzy

    Do you know how this works in normal unstructured FM authoring?

     

    I don't know FDK, but your problem may be that the objects you need don't exist, because they don't exist by default in a fresh (not a template) FM document until the first time you perform the following operation:

     

    Format > Page Layout > Apply Master Pages ...

    | Master Page Mapping table does not exist.

    | A new table will be created in the reference pages.

    [ OK ]

     

    And the table thus created may be found via:

    View > Reference Pages

    MasterPageMaps

    but doesn't do anything until you populate it with para tag names, MP page names, and page span specs.

     

    At that point, the author can cause the mapping to occur in a couple of ways, one of which is:

    Format > Page Layout > Apply Master Pages ...

    (or AMP, as it is sometimes called here)

     

    I suspect there's an easy way to invoke an AMP in FDK.

    As to whether FDK can create that Master Page and table, and populate the table, dunno.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2013 3:57 AM   in reply to RonXyzzy

    A body page is represented as "FO_BodyPage" object. You have to write code to get this object (objectid).

    FO_BodyPage has a property "MasterpageName". Set this property to the name of the masterpage you want to assign. I think using the alread mentioned APM functionality is the more general way and fit several other problems. To call this you have to get the fcode of the command "APPLYMASTERPAGES" (F_ApiGetNamedObject(FV_SessionId, FO_Command, "APPLYMASTERPAGES"). A command has an Fcode property which you can use to call F_ApiFcodes to execute this command by the FDK. I think the FDK reference will deliver more information. Bye Markus

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points