2

I have to create multiple maps using the same layout, but different map views (more than 100 maps). There is a separate rectangles layer created for each view at a specific scale using the map frame from the layout window. Within the layout window, I would like to automate the process by updating automatically attribute information for layers displayed within the map frame within text boxes on the layout.

Is there any possibility to do this process through a MapBasic script? As far I have researched the topic, I didn't find any solution. Also, I know that Mapinfo 15.2 has the capability to support multiple pages layouts, but the amount of information that needs to be displayed increases the resources usage, which make the program run really really slow.

closed as too broad by PolyGeo May 17 '16 at 11:23

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    It sounds like you're looking for something like data-driven pages. Take a look this tool by John Wilcock, might do the job for you (not sure if it's been tested on versions later than 12 though) - communitydownloads.pbinsight.com/code-exchange/download/… – T_Bacon Apr 22 '16 at 10:41
  • Thank you for the recommendation. As per description, it looks like a useful tool. I've downloaded it and tried to run the .mbx file on Mapinfo 15.2 and the tool starts the process of creating the layout window and it gives an error half way through, with a message suggesting that some .xml files are missing. – Ioana Muresan Apr 22 '16 at 11:29
  • Have you got .NET framework 4.0 installed? If not, that could be the issue, otherwise it might just be an issue with the version of MapInfo. – T_Bacon Apr 22 '16 at 12:32
  • 1
    From reading your question I can decipher three questions: 1. Zoom and Center a map using Frames in a table. 2. Replacing texts in the layout with texts from a table 3. Complex label expressions. Maybe you should consider splitting this question into 3 – Peter Horsbøll Møller Apr 25 '16 at 7:15
  • 1
    Thank you for your recommendation. At the time when this query was posted, I didn't have any solutions at all or any code available. Recently, I have managed to build up a code for a toolbar that I can use to update the layout using pre-selected tables, by creating text boxes on the layout. I was not familiar with Tour link recommended, but I will keep in mind for future queries. – Ioana Muresan May 17 '16 at 11:48

Browse other questions tagged or ask your own question.