Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

ImportData method doesn't function

This is a discussion on ImportData method doesn't function within the MapPoint Desktop 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 ...

  1. #1
    Val
    Val is offline Junior Member White Belt
    Join Date
    Dec 2002
    Posts
    8

    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

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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.

  3. #3
    Mossoft is offline 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.

  4. #4
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ImportData method ?
    By mgorgone in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-02-2005, 01:31 PM
  2. c# ImportData method help needed
    By fletch in forum MapPoint Desktop Discussion
    Replies: 8
    Last Post: 03-09-2005, 09:15 AM
  3. import query with importdata method in VB.net
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-20-2004, 10:30 AM
  4. Get an error 4055 by using method ImportData
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-21-2003, 12:27 PM
  5. How ImportData method with "Password-protected" a
    By rrosenhagen in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-10-2002, 03:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127