Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| SaveMapAs and SaveAs 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 |
| |||
|
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 |
| |||
|
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 |
| |||
|
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 |
| |||
|
I did and it works fine! Greetings, Syd |
| |||
|
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! |
| |||
|
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 |
![]() |
| Tags |
| saveas, savemapas |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |