Community of VE/MapPoint Users and Developers
This is a discussion on Clientside VBScript and MapPoint? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm working on three MP-related things and have looked through these forums for the answers to what I'm sure must ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Clientside VBScript and MapPoint? Scenario 1: Using a client-side VBScript application (HTA) to search / display data from a MySQL database. -Are there any VBScript examples for MP2k4? -I can find some straight VB / EXE examples but have had no luck adapting them. Scenario 2: Using the process mentioned above, I need to find addresses within X miles of point Y. Do I need (or would it be faster) to have long/lat in the DB already? Scenario 3: Part of what I'm working on is web-based. In order to remain EULA compliant, I would like to be able to submit - from a web form - information to the locally installed MP. Having something (script or whatever) installed on the clients machine as a prerequisite is fully acceptable if necessary. -I'm mainly looking for possible approaches to explore on this one. This is a very comprehensive forum and I'm very new to MapPoint - it's a bit overwhelming so thanks in advance for any direction or links! |
| |||
| Postnote:
Also, in case I haven't been clear, I'm looking to use the HTA (vbscript) to open MP to the correct map as opposed to making an HTML file - although that might be a possibility to consider for later. Thanks again! |
| |||
| Scenario 1 addressed
The code for Scenario 1 (above) in vbscript: Sub ShowApplication() Set oApp = CreateObject("MapPoint.Application") Set oMap = oApp.ActiveMap oApp.Visible = True oApp.UserControl = True 'Add a Pushpin oMap.AddPushpin oMap.FindResults("502 Hazlett Ave NW, Canton, OH, 44708")(1) 'Add another Pushpin oMap.AddPushpin oMap.FindResults("41423 West Tuscarawas Street, Canton OH, 44702")(1) 'Zoom to the newly created Pushpin set oMap.DataSets.ZoomTo oApp.ActiveMap.ZoomIn End Sub ShowApplication |
| |||
| Client-side
amitsh, Authentication & URL don't really apply - this code is for client-side use, not server-side. -It's designed to pass values from a client-side vbscript application directly to MapPoint (installed on the same machine), open MP and map the address(es) sent to it. It wouldn't be hard to modify to accomplish publishing maps - and the EULA (2k4 anyway) DOES provide for up to 1000 Internet posted pages Dig through MS's MSDN site for MapPoint (developer section) - pretty much all the code you need is there |
![]() |
| Tags |
| clientside, mappoint, vbscript |
| ||||
| Posted By | For | Type | Date | |
| Embedding MappointControl in IE - microsoft.public.mappoint | Google | This thread | Refback | 11-20-2007 12:20 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint 2002 with ASP (vbscript) | eatech | MapPoint 2006/2009 Discussion | 6 | 05-05-2005 05:12 AM |
| Will Pay $$$ for Assistance - ASP / VBSCRIPT | webdbx | MapPoint 2006/2009 Discussion | 1 | 07-09-2004 09:31 PM |