Community of VE/MapPoint Users and Developers
This is a discussion on I am currently working with the MapPoint 2002 Tria.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am currently working with the MapPoint 2002 Trial. I want to utilize MapPoint in an Access database. I can ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| |
| |||
|
Greg, I had the same problem. Have you overcome it yet? I used a code sample which works with an image control on the Access form, pasting the contents of a MapPoint Object into the image. Email me for further info or to share progress at wellermatt@hotmail.com. Code Sample (sorry it is untidy!): Private Sub Form_Load() SetObjects ReloadMap ("None") End Sub Sub SetObjects() Set oApp = CreateObject("Mappoint.Application") Set oMap = oApp.OpenMap("c:\matt\renault\CUstom Territories.ptm") 'Create a new map End Sub Sub ReloadMap(PCode) Dim oPush As Object, oLoc As Object Set oLoc = oMap.Find(PCode) 'get address from PostCode If Not oLoc Is Nothing Then 'Check to see if the first address was found. Set oPush = oMap.AddPushpin(oLoc) 'Place a pushpin on the map 'add some more details to the pushpin and display the balloon oPush.BalloonState = geoDisplayBalloon oMap.ZoomIn oPush.Goto oMap.Saved = True 'Zoom in so that the entire map with directions is viewed oMap.CopyMap 'Copy the map to the clipboard img.Visible = True 'Change the image place holder in the Access form to visible img.Action = acOLEPaste End If End Sub Sub RefreshMap() oMap.Saved = True 'Zoom in so that the entire map with directions is viewed oMap.CopyMap 'Copy the map to the clipboard img.Visible = True 'Change the image place holder in the Access form to visible img.Action = acOLEPaste End Sub Private Sub cmdPanEast_Click() oMap.Pan (geoEast) RefreshMap End Sub Private Sub cmdPanNorth_Click() oMap.Pan (geoNorth) RefreshMap End Sub Private Sub cmdPanSouth_Click() oMap.Pan (geoSouth) RefreshMap End Sub Private Sub cmdPanWest_Click() oMap.Pan (geoWest) RefreshMap End Sub Private Sub cmdZoomIn_Click() oMap.ZoomIn RefreshMap End Sub Private Sub cmdZoomOut_Click() oMap.ZoomOut RefreshMap End Sub |
![]() |
| Tags |
| mappoint 2002, tria, working |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Got Mappoint ActiveX working in Delphi 5 | lynx | MapPoint 2006/2009 Discussion | 8 | 02-12-2008 05:46 PM |
| When working with mappoint and coping to word how .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-28-2002 09:20 AM |
| Hi there. Working with MapPoint 2002, Is it pos.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-25-2002 10:36 AM |
| I am working with MapPoint Europe 2002. How can I .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-24-2002 10:36 AM |
| I am working with Mappoint in Pakistan and I want .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-22-2002 10:02 AM |