MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MapPoint hangs when saving map as HTML

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


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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 09-09-2005
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 48
MapPoint hangs when saving map as HTML

I'm using the MapPoint Control, and I needed to save a 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
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 09-09-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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.
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 09-10-2005
Member
Yellow Belt
 
Join Date: Feb 2005
Posts: 48
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 ?
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 09-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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
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
hangs, html, map, mappoint, saving


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappoint-hangs-when-saving-map-html-4457.html

Posted By For Type Date
MapPoint hangs when saving map as HTML - MapPoint Forums This thread Refback 04-30-2008 08:46 AM
MapPoint hangs when saving map as HTML - MapPoint Forums This thread Refback 04-30-2008 08:46 AM

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 on html page ? kristijan MapPoint 2006/2009 Discussion 3 05-24-2006 08:00 AM
Can I embed MapPoint ActiveX Ctrl in HTML with JScript/VBScr Anonymous MapPoint 2006/2009 Discussion 2 01-16-2006 04:01 AM
Problem saving map to html MarkStanley MapPoint 2006/2009 Discussion 1 09-22-2005 03:24 PM
MapPoint Map.SaveAs HTML Anonymous MapPoint 2006/2009 Discussion 1 11-11-2003 10:15 AM
MapPoint control hangs while opening a map Anonymous MapPoint 2006/2009 Discussion 0 10-24-2002 12:18 PM


All times are GMT -5. The time now is 01:53 PM.


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