Community of VE/MapPoint Users and Developers
This is a discussion on Get link-data from online source ? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to have a linked-data file (.csv) containing my coordinates info that is placed online, like "http://mappoint.mydomain.com/mapcoords.csv" so I ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Get link-data from online source ? Is this possible in any way ? Just using the url doesn't seem to work. |
| |||
| Re: Get link-data from online source ?
Hi, What you want is very easy to do in a custom program. Do you have programming skills ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Get link-data from online source ?
What I want is something similar to: WebClient Client = new WebClient(); Client.DownloadFile("http://tracker.mydomain.com", "c:\mappoint.csv"); at least that's what I think I need, preferably it would do it automatically every 10min or something like that and then do an "update". Have looked at COM add-ins but can't find any really good examples and the ones I've tried to create in vs.net2005 doesn't work. Would prefer if I could do it in C#, but if I have to use another language I guess I'll have to live with that |
| |||
| Re: Get link-data from online source ?
Hi, Yes that's exacly how to do. I never used the WebClient in C# but should be something like that. you can do the update every 10 minutes or so with a Timer, eventually compare the file if changed and import it into the MP control.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Get link-data from online source ?
Thanks for the help. Well after hours of looking through all the craptastic tutorials and guides I could find for making a COM add-in I finally managed to make my own button that gets and saves the file, yay me But is there a way I can call the "update linked data"-function when I've clicked my "Get coordinate file"-button ? This isn't supposed to be a live tracker or anything, but it would be nice only having to press 1 (or maybe 0) button rather than 2 |
| |||
| Re: Get link-data from online source ?
Hi, Yes you can. Use the LinkData method to add the data to the map. It returns a dataset. Then after a while when you reload the file you can call the dataset's UpdateLink method and the map will automatically update it.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| linkdata, online, source |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Data source | Anonymous | MapPoint Web Service and Virtual Earth | 2 | 08-11-2005 04:25 PM |
| Question about Map Data Source | VincentSun | MapPoint 2006/2009 Discussion | 0 | 02-27-2005 09:37 PM |
| Which data source to use ? | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-07-2004 06:03 AM |
| Populating Territory using SQL Data Source | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-21-2003 11:36 PM |
| [VB6 + ACCESS + MP] : How to change data source ? | Vincent BENNER | MapPoint 2006/2009 Discussion | 0 | 10-17-2002 03:35 AM |