MapInfo Pro Developers User Group

 View Only
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

    Employee
    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
    ------------------------------



  • 3.  RE: Multi-page layouts

    Posted 01-20-2021 06:23
    Hello Kalu, 
    thank you for your question. I just wanted to ask the same question. Is there Clone Page or Copy page or any similar option when we do multipage layouts? It's a little bit annoying to  spend time adding legend and all the bits for every single page.
    I have tried copy-paste but it doesn't work for map items, only for layers.
    Many thanks all,
    Adrijana

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------



  • 4.  RE: Multi-page layouts

    Employee
    Posted 01-25-2021 02:42
    Adrijana,

    There is no Clone Page option.
    But having said that, you should be able to copy all the content from one page and paste it to another page.

    1. Go to the page, you want to copy
    2. Use Ctrl+A to select all the elements on the page
    3. Use Ctrl+C to copy the selected elements
    4. Go to the new page, or add a new page
    5. Use Ctrl+V to insert all the copied elements.

    Let me know if this works for you

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 5.  RE: Multi-page layouts

    Posted 01-25-2021 05:18
    Edited by Adrijana Grujić 01-25-2021 05:18
    It does copy only map windows, but not the legend and scale. We are using version 19.3.

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------



  • 6.  RE: Multi-page layouts

    Employee
    Posted 01-25-2021 05:39
    Hi Adrijana

    I just tried with legends and a scalebar added to the layout.
    I can see that if I select the scalebar, the Copy control gets disabled which indicated that I can't copy the scalebar.

    I can however copy and insert the legends.

    Would it work for you to use the scalebar you can insert into the Map window as a workaround?

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 7.  RE: Multi-page layouts

    Posted 01-25-2021 06:52
    It would be ok but it doesn't work. If I select any or all legend items, copy and cut options are disabled. Only active option is paste. And paste actually paste whatever I copied before,  feature or  layer or map window.
    If I use keyboard shortcuts, it is the same.

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------



  • 8.  RE: Multi-page layouts

    Posted 02-03-2021 03:07
    Edited by Adrijana Grujić 02-03-2021 03:08
    A little update. I found the problem.
    What Peter said above about using ctrl+a , ctrl+c and ctrl+v, works. You can copy everything except the scale bar. But as I mentioned before, it hasn't worked every time. If I copied something else, even if it was copied in another software, it would paste that. Only solution for me was to save the project, turn off the pc. Turn it on back and then do the same process again. And it worked. This way I knew I didn't have anything copied previously on my system. I must say it is very useful being able to duplicate page in multipage layout.  And if any of you know, how to remove whatever is previously copied on the system without me turning of the pc, please let me know.

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------



  • 9.  RE: Multi-page layouts

    Employee
    Posted 02-03-2021 03:16
    Thanks for follow-up, Andrijana

    I forgot to mention that MapInfo Pro sometimes disables the Copy button. That seems to happen when you have selected something that can't be copied.

    I didn't notice if the tooltip for the Copy button says what you need to deselect to be able to copy the selected items.

    This also explains why you sometimes insert text that you might have copied from other applications. This happens when you use Ctrl+C when the Copy button has been disabled.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 10.  RE: Multi-page layouts

    Posted 02-26-2021 03:23
    Is it possible to have portrait and landscape oriented pages mixed in the same multipage layout?

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------



  • 11.  RE: Multi-page layouts

    Employee
    Posted 03-03-2021 05:12
    No, at the moment all pages in a layout have to use the same setup (paper size and orientation)

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 12.  RE: Multi-page layouts

    Posted 03-04-2021 03:08
    Ok. Thank you for your response.
    Please, add it to the list for the new upgrade. :)

    ------------------------------
    Adrijana Grujić
    Slough Borough Council
    SLOUGH
    ------------------------------