MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint SaveAs Method

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 6
Mappoint SaveAs Method

Is there something wrong with my code (VB.Net Windows forms app)?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-16-2004
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 1
Re: Mappoint SaveAs Method

Try not to cancatenate the string with '+', always use the '&' ampersand character

Quote:
Originally Posted by mmichaels
Is there something wrong with my code (VB.Net Windows forms app)?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-16-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 6
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-16-2004
Junior Member
White Belt
 
Join Date: Jan 2004
Posts: 6
mappoint saveas method

Figured it out. Changed code to read:

ntMap.SaveMapAs(myParent.CurrDir & "\SavedMaps\" & Me.Text & ".ptm")


(Used the SaveMapAs method instead of the SaveAs method).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
mappoint, method, saveas


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 11:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54