Community of VE/MapPoint Users and Developers
This is a discussion on Mappoint SaveAs Method within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is there something wrong with my code (VB.Net Windows forms app)? Private Sub MapFrm_Closed(ByVal sender As Object, ByVal e As ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mappoint SaveAs Method Private Sub MapFrm_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed ntMap.ActiveMap.SaveAs(Environment.CurrentDirector y + "\" + "test.ptm", MapPoint.GeoSaveFormat.geoFormatMap, False) ntMap.ActiveMap.Saved = True End Sub There is no file being saved anywhere to disk. Am I missing something? Thanks! Marc |
| |||
| Re: Mappoint SaveAs Method
Try not to cancatenate the string with '+', always use the '&' ampersand character Quote:
|
| |||
| Mappoint SaveAs method
changed the code to: Private Sub MapFrm_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed ntMap.ActiveMap.SaveAs(Environment.CurrentDirector y & "\test.ptm", MapPoint.GeoSaveFormat.geoFormatMap, False) ntMap.ActiveMap.Saved = True End Sub still no luck. marc |
![]() |
| Tags |
| mappoint, method, saveas |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SaveMapAs and SaveAs | TheJudge | MapPoint 2006/2009 Discussion | 12 | 04-14-2004 06:06 PM |
| PrintOut method with MapPoint ActiveX control?!! | TheJudge | MapPoint 2006/2009 Discussion | 3 | 04-13-2004 06:35 PM |
| Create Mappoint.Application with CreateObject method | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-03-2004 08:03 AM |
| MapPoint Map.SaveAs HTML | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-11-2003 10:15 AM |
| .Save and .SaveAs don't work in from VB using MapPoint Ctrl | Anthony_Hunt | Wish List | 1 | 05-29-2003 07:51 PM |