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