Community of VE/MapPoint Users and Developers
This is a discussion on ImportData method doesn't function within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I use Mappoint within VB. I try to import a text file with the metod ImportData, but I get an ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| ImportData method doesn't function I try to import a text file with the metod ImportData, but I get an error saying: "Enable to connect to the DataSourceMoniker specified" My call is: Set oDS = oMap.DataSets.importData(filename, , geoCountryDefault, geoDelimiterDefault, 0) My text file is an ordinary text file with tabulation like separator. Could you help me please ? Thanks Val |
| ||||
|
Val, If your file has a TAB delimiter you two choices. If you specify geoDelimiterDefault then your filename has to have an ".asc" extention. Or insted of geoDelimiterDefault use geoDelimiterTab. Also, the last parameter is ImportFlags which you have a 0. That would mean the first row of the file contains field names, which is the default. If that is not the case, change it to 1.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
| ImportData:"Cannot connect..." with "*.GPS&qu
I am importing a tab delimited file that has a ".GPS" extension. I have tried geoDelimiterTab and geoDelimiterDefault but the import still fails "Cannot connect with the specified DataSourceMoniker." Changing the name of the file to have a ".TXT" extension allows the import to succeed. Unfortunately, the naming convention is out of my hands and I do not want to make a copy of the file. Are there any other options? M. |
| ||||
|
Creating a temp file from the .gps file might be the way to go? I don't see anything that says it must be named .txt but you kinda proved it?
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| function, importdata, method |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ImportData method ? | mgorgone | MapPoint 2006/2009 Discussion | 2 | 06-02-2005 02:31 PM |
| c# ImportData method help needed | fletch | MapPoint 2006/2009 Discussion | 8 | 03-09-2005 10:15 AM |
| import query with importdata method in VB.net | Anonymous | MapPoint 2006/2009 Discussion | 3 | 01-20-2004 11:30 AM |
| Get an error 4055 by using method ImportData | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-21-2003 01:27 PM |
| How ImportData method with "Password-protected" a | rrosenhagen | MapPoint 2006/2009 Discussion | 0 | 12-10-2002 04:13 PM |