12-19-2005 02:56 PM
12-20-2005 05:00 PM - edited 12-20-2005 05:00 PM
Hi,
I'm afraid I don't have any experience with MapPoint, but some of the other members might. If so, it would be great if they could post any code they may have...
As a general rule, programming ActiveX is a little tricky since properties and methods aren't always documented well. Furthermore, the ActiveX hierarchies for a particular application can change from revision to revision. This is why programs using activeX to interface with Word or Excel have problems with different versions of Office. If you have to use Map Point, you may want to check MSDN for any information they may have. You may also want to check out the ActiveX examples in the Example Finder by searching for ActiveX. They should give a general understanding of how ActiveX programming is done on the LabVIEW side of things.
If you can use a web based application, it might make your life a little easier. You can specify lat long coordinates in Google Maps very easily. Im attaching a simple application that does this for you. Just enter the lat and long in decimal format and hit run. The resulting map will show up in the container on the front panel and you can pan or zoom to your heart's content. I hope this helps. Good luck with your application and happy holidays!
Message Edited by ChrisJ on 12-20-2005 05:00 PM
01-05-2006 08:34 AM
02-08-2006 07:57 AM
I was given a basic example using MapPoint 2004 ActiveX with LabView 7.1. I will attach it.
I also found the reason I had so much problems getting it to work. I had obtained a Microsoft Partner Program Action Pack version of MapPoint 2004 for development purposes. Unfortunately the ActiveX was not activated in that version. I then tried uninstalling that version and installing a single user licensed version. For some reason the ActiveX would not work there either. After much searching on various discussion forumns and web sites, I am convinced Microsoft stored some value in a hidden file that caused the ActiveX to remain inoperable. I had to completely reformat my hard drive to get rid of it. Then reload the licensed version of MapPoint. All works fine now.