MapInfo Pro Developers User Group

Expand all | Collapse all

Multi-page layouts

  • 1.  Multi-page layouts

    Posted 03-25-2019 19:20
    Is it possible to "duplicate" or "clone" a page in Layout in order to add a new page to the layout?

    This would be useful.



    It should be able to be called by MapBasic in order to batch create multi-page layouts.

    Kalu

    ------------------------------
    Kalu Ribush
    Senior Mapping Specialist
    Department of Economic Development, Jobs, Transport and Resources (DEDJTR)
    Melbourne NT
    ------------------------------


  • 2.  RE: Multi-page layouts

    Posted 03-26-2019 03:36
    Hi Kalu

    I'm sure you know this can be done currently by copying and pasting the content from the existing page to the new page.

    I wonder if you do that via MapBasic too?

    1. Select all elements on the page:
    Set Layout Window layoutID Selection All

    2. Copy the current selected frames
    Run Menu Command M_EDIT_COPY '203

    3. Create a new page
    Add Designer Page Window layoutID
    Set Layout Window layoutID Page LayoutInfo(layoutID, LAYOUT_INFO_NUM_PAGES) 

    4. Paste the frames from the clipboard
    Run Menu Command M_EDIT_PASTE '204

    But I certainly like your more simplistic approach with the Clone Page option.

    ------------------------------
    Peter Horsbøll Møller
    Pitney Bowes
    ------------------------------