MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




ImportData method doesn't function

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-26-2002
Val Val is offline
Junior Member
White Belt
 
Join Date: Dec 2002
Posts: 8
Send a message via MSN to Val
ImportData method doesn't function

I use Mappoint within VB.
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-27-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-01-2003
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-01-2003
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
function, importdata, method


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 02:26 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55