MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




SaveMapAs and SaveAs

This is a discussion on SaveMapAs and SaveAs within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, Im using MapPoint Control with C# and I would like to be able to save the maps and ...


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 04-05-2004
Junior Member
Yellow Belt
 
Join Date: Mar 2004
Posts: 15
SaveMapAs and SaveAs

Hi all,

Im using MapPoint Control with C# and I would like to be able to save the maps and direction as a Html file.

Any idea why it is not allowing me to do it?

i tried using the following line but that doesn't work unless i save it as a mappoint file (ptm):
this.axMappointControl1.SaveMapAs("C://route.htm");

and if i use the following line, nothin is saved!:

axMappointControl1.ActiveMap.SaveAs("C://route.htm", MapPoint.GeoSaveFormat.geoFormatHTMLMapAndDirectio ns, false);


Any idea of what i can save the activemap as a html file.

Im doing this as I would like to be able to print since the PrintOut method is not doing anything either!

this.axMappointControl1.ActiveMap.PrintOut("C://route.ptt", "MapPoint testing", 2, MapPoint.GeoPrintArea.geoPrintDirections, MapPoint.GeoPrintQuality.geoPrintQualityNormal, MapPoint.GeoPrintOrientation.geoPrintAuto, false, false, false, false);

the only way to save anything is to load the map into MapPoint 2004 application and from my application i save it using the first line but that is not even allowed.ad you not allowed to add both MapPoint COM controls into a single application (MapPoint 11.0 Object Library (Europe) & MapPoint Control 11.0)

Any help or idea would be very much appreciated it..

thank you in advance.

Regards,
Kam
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 04-06-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
As far as I know, the SaveAs method is not available in the MappointControl.

Also, I'd like to know what this object MapPoint object is when you're using the MapPointcontrol.

The PrintOut Method is somewhat difficult, but as you can see in MapPoint, if you want to save the map in a file, MapPoint creates a *.prn file for your printer.

If you want to print out a route, you must check first if a route is calculated.

I'm creating a Printdialog to get all possibilities.

greetings,
Syd
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 04-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
what about the PrintOut method?! the whole idea behind saving the map was to print the html file.!

it's urgent. hope someone has any idea about it.

Thanks
Kam
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 04-06-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
I guess it's difficult then.
Perhaps you just use the copymap method and work with the clipboard, save it as a jpg, get the path of your picture, create a *.html file and put the picture in the body of this file
- but perhaps there is an easier way to do so

Perhaps the savedwebpage object can help you with this problem?

greetings,
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-06-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
I tested it:

objMap.SavedWebPages.Add "C:\abcdefg", , "ABC test", True, True, False, 500, 500, True, True, True, False

objMap.SavedWebPages.Item(objMap.SavedWebPages.Cou nt).Save

- works fine

greetings
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2004
Junior Member
Yellow Belt
 
Join Date: Mar 2004
Posts: 15
that's great... thank you so much. finally i can save my maps and direction in order to print them out..

im not quite sure if you've tried using PrintOut method to print out maps? if so did it work with u?

Have a good time..

Regards,
Kamal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 04-14-2004
Syd Syd is offline
Member
Yellow Belt
 
Join Date: Aug 2003
Posts: 42
I did and it works fine! Although I had to make some changes for the pagesetup object to get it right for MP2k4 Europe I made a Printdialog to get all options - although I'm searching for the right Map title...

Greetings,
Syd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 04-14-2004
Junior Member
Yellow Belt
 
Join Date: Mar 2004
Posts: 15
how did u do it!, it didn't work with me! i've used the line above!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 04-14-2004
Junior Member
Yellow Belt
 
Join Date: Mar 2004
Posts: 15
when i passed null instead of a file name, it worked fine but i have to call the same method more than once in order to print the map and the direction and the route turnbyturn!!

i wonder if it is possible to set all of these option only once!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 04-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
If you mean by "set all options at once" to get all printareas at once - that's not possible. These are different values within one argument: the printarea.

The filename argument in the printout method is used for making *.prn files. These files can be read only by your printer.

I do it this way: I programmed a printdialog to get all the options I need to print the map like I want to. When I hit the "Print"-Button on my dialog, I check all values I set before I call the printout method.

I know that 10 arguments are quite a lot - but it's also quite easy to set them right.

Hope this helps you a bit. Perhaps you can explain it a little bit more

Greetings,
Syd
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
saveas, savemapas


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
Mappoint SaveAs Method mmichaels MapPoint 2006/2009 Discussion 3 02-16-2004 11:01 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 12:45 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 55