View Single Post

  #8 (permalink)  
Old 12-23-2006
AUR AUR is offline
Junior Member
White Belt
 
Join Date: Dec 2006
Posts: 11
Re: Automating Access and Mappoint

Hello Wilfried
thanks for replying

i' using this code on form's open event

Form_testform!ActiveXCtl10.NewMap geoMapEurope

this works just fine when you place a control for the first time from the toolbox and open the form at runtime and the map gets loaded in activex control, but when you close the form and reopen it again , it starts giving suspicious errors identified previously.

Also my standalone mp2004 is working fine.

i've read several posts, some people are successful in integrating this but i dont know whats the actual code to open it and close.

May be something needs to be done when you'r closing the form , for example i'm using the following code on form's unload event

Form_testform!ActiveXCtl10.ActiveMap.Saved = True

I believe there's not enough issue with the code which is just intended for
loading the map point but can anyone highlight on the issues regarding XP SP2 incompabilities identified previously etc.

thanks
Reply With Quote