whatchoo talkin about willis? sorry, had to. heh.
anyway, do you want to just run mapinfo, do what you want to the zoom and stuff, then leave it to the user? or do you want to integrate it with access and whatnot? well, it's been a long time since i externally controlled MI through access, but it is quite simple to either instantiate MI, or get an already running instance, and then play with it. here's an integrated mapping example that i made a year or so ago, with a couple additions recently. http://www.users.bigpond.com/ashsimmonds/mapinfo/ashanimation.zip it's not well documented, and has since been totally re-written for my new stuff (but which is too hard to just extract for small demo purposes), however my class module will give you some ideas, it will probly be like telling you how a watch werks when all you asked for is the time. once it's loaded (whether you specified your own werkspace or whatever) go to the Immediate Window in VBA, type "MI." and intellisense should give you a list of functions, including ZOOMTO where you can simply specify an X and Y coordinate, and optionally a zoom level. so something you could easily do is add a button to that form which automatically zooms to a given location. anyway have a play with it. -----Original Message----- From: Andrew Willis [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 October 2003 10:28 PM To: [EMAIL PROTECTED] Subject: MI-L Open MapInfo from Access VBA, centred and zoomed I am trying to do something I imagine is meat and drink to you folk. I have an Access app which is a Property Asset Manager for a local council. It stores eastings and northings of the property and I want to open a Mapinfo map/tile from Access with the property centred, pointed to even, and zoomed to a predefined size. How do I do this? I am guessing I either need to know some command line parameters to go after mapinfow.exe shell command or perhaps I write a batch file with some parameters which Mapinfo always reads on opening and opens the correct tile and centres and zooms as required. Any ideas? Thanks Andy Willis Eastcote Middx UK --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 8952
