Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on MapPoint hangs when saving map as HTML within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using the MapPoint Control, and I needed to save a map as HTML. Because the Control does not sponsor ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| MapPoint hangs when saving map as HTML Because the Control does not sponsor support for geoFormatHTMLMap using the .saveas method, I read that the only way to do this is to use the control.saveas to save the map as a .ptm, and then instantiate MapPoint (second instance if you watch processes), and use: oRootApp.ActiveMap.SaveAs sFileNameAndPath, geoFormatHTMLMap This indeed does save the map an html, and the corresponding graphic, however, the new second instance of mappoint that is started never dies. Upon form load with the control, an instance of MapPoint starts. On the form, I sponsor functionality to save map as html. So, the form is still loaded, one instance of mappoint running, and I go to instantiate the second instance to gain access to teh .SaveAs that allows for geoFormatHTMLMap, map saves, but never returns. Win NT 5.0 > 5.x happens on all versions of OS that I've witnessed. Anyone else have a clue on this ? I did indeed read the example provided in this forum for saving to html, and for the most part have learned that the control lacks a great deal of functionality of the app object automation approach, and unfortunately you can not embed the app through automation as transparantly as the control. Ideas ? Tim Miltz |
| |||
|
Hi, In fact the map is saved as a picture, and a small html document is generated to show the picture with a browser. So what you easy can do is copy the map to clipboard, save the clipboard as a gif, bmp, or wathever and generate a small html file yourself. It will probably go mutch faster also.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| MapPoint Control
Interesting idea there. I wasn't aware the mappoint Control sponsored a means to copy the map to the clipboard. I realized what causes the hang, if the control instance has the map currently 'open', and I go to instantiate the map point application object, second instance hangs, if I 'close' the map that's displayed with the mappoint control, and THEN instantiate MO (some humor for ESRI people there), it doesn't hang, but, I end up flashing the screen blank for a split second during save. Using the control explicitly would be terrific, what's odd is I see MapPoint Application Object HAS a .UserControl property that can be set to True, yet, I don't get the stripped down control when I set this, so I just use the control explicitly, however, as stated above, no means to save to 'other than' a .ptm file with the control. I like the clipboard idea, however, I'm not sure what means exist to push the control's map to the clipboard. Thoughts ? |
| |||
|
Hi, You can use the CopyMap method to copy it to clipboard. After that you save it to a GIF or whatever format file you like, and you create a HTML file to display it. This is excacly what mappoint does saving to html, but it is better you control all yourself (meaning I like to have control myself
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| hangs, html, map, mappoint, saving |
| ||||
| Posted By | For | Type | Date | |
| MapPoint hangs when saving map as HTML - MapPoint Forums | This thread | Refback | 04-30-2008 07:46 AM | |
| MapPoint hangs when saving map as HTML - MapPoint Forums | This thread | Refback | 04-30-2008 07:46 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mappoint on html page ? | kristijan | MapPoint 2006/2009 Discussion | 3 | 05-24-2006 07:00 AM |
| Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-16-2006 03:01 AM |
| Problem saving map to html | MarkStanley | MapPoint 2006/2009 Discussion | 1 | 09-22-2005 02:24 PM |
| MapPoint Map.SaveAs HTML | Anonymous | MapPoint 2006/2009 Discussion | 1 | 11-11-2003 09:15 AM |
| MapPoint control hangs while opening a map | Anonymous | MapPoint 2006/2009 Discussion | 0 | 10-24-2002 11:18 AM |
Taba Heights Holiday
Visit Egypt with your Taba Heights holiday. Book through UlookUbook and save!