Community of VE/MapPoint Users and Developers
This is a discussion on Import data from a text file within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, (I use the Mappoint's ocx in a VB program). I would like to import data from a text file. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Import data from a text file (I use the Mappoint's ocx in a VB program). I would like to import data from a text file. I have create a file wich contains: first line: title information like "code, town, country..." Second line: informations like "002,Paris, france..." So, I ask me how does Mappoint will understand that the second field is the town, the third is the country... Somebody could ligth me please ? Thanks ! |
| |||
| Import Text file to MapPoint
You will use the methods ImportData (if you only do it once) or LinkData (if you want to be able to update the data). If you use following titles in your text-file, MapPoint will know what to look for: Street address Postcode City Country/Region (see clients.mdb in \samples directory of MapPoint) Then just import it to a dataset on the active map like this: Me.MapPointControl1.ActiveMap.Datasets.ImportData "Filename.txt" You can then decide what you want to show in the PushPin balloon with the method SetFieldsVisibleInBalloon. /Joakim Tornhill
__________________ SpedSoft AB has been working with MapPoint since version 2000 and have the longest experience in Sweden on MapPoint. |
![]() |
| Tags |
| data, file, import, text |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Possible to batch file/macro Import Data Wizard? | Oyjord | MapPoint 2006/2009 Discussion | 0 | 05-31-2005 06:05 PM |
| Import data from a file into Map Point using VB Code?..... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-29-2004 02:48 PM |
| Import NMEA-data from a file into mappoint | Anonymous | MapPoint 2006/2009 Discussion | 2 | 11-19-2003 01:17 PM |
| to import data of one access file into another using vb code | bushi_khan | MapPoint 2006/2009 Discussion | 0 | 10-14-2003 03:12 AM |
| Say I import a data file containing company names,.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-14-2002 02:00 PM |