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 5 of 5

Clientside VBScript and MapPoint?

This is a discussion on Clientside VBScript and MapPoint? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm working on three MP-related things and have looked through these forums for the answers to what I'm sure must ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Clientside VBScript and MapPoint?

    I'm working on three MP-related things and have looked through these forums for the answers to what I'm sure must have been asked before but haven't had any luck. I am completely new to MP so if some kind person(s) could point me in the right direction(s) I would be grateful.

    Scenario 1:
    Using a client-side VBScript application (HTA) to search / display data from a MySQL database. -Are there any VBScript examples for MP2k4? -I can find some straight VB / EXE examples but have had no luck adapting them.

    Scenario 2:
    Using the process mentioned above, I need to find addresses within X miles of point Y. Do I need (or would it be faster) to have long/lat in the DB already?

    Scenario 3:
    Part of what I'm working on is web-based. In order to remain EULA compliant, I would like to be able to submit - from a web form - information to the locally installed MP. Having something (script or whatever) installed on the clients machine as a prerequisite is fully acceptable if necessary. -I'm mainly looking for possible approaches to explore on this one.

    This is a very comprehensive forum and I'm very new to MapPoint - it's a bit overwhelming so thanks in advance for any direction or links!

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Postnote:

    Also, in case I haven't been clear, I'm looking to use the HTA (vbscript) to open MP to the correct map as opposed to making an HTML file - although that might be a possibility to consider for later.

    Thanks again!

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Scenario 1 addressed

    The code for Scenario 1 (above) in VBScript:

    Sub ShowApplication()

    Set oApp = CreateObject("MapPoint.Application")
    Set oMap = oApp.ActiveMap
    oApp.Visible = True
    oApp.UserControl = True

    'Add a Pushpin
    oMap.AddPushpin oMap.FindResults("502 Hazlett Ave NW, Canton, OH, 44708")(1)

    'Add another Pushpin
    oMap.AddPushpin oMap.FindResults("41423 West Tuscarawas Street, Canton OH, 44702")(1)


    'Zoom to the newly created Pushpin set
    oMap.DataSets.ZoomTo
    oApp.ActiveMap.ZoomIn

    End Sub

    ShowApplication

  4. #4
    amitsh is offline Junior Member Yellow Belt
    Join Date
    Feb 2004
    Posts
    13
    Is any authetication information such as user id and password is required to access the Map Point service?
    And what URL we need to access the Map Point service ?

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Client-side

    amitsh,

    Authentication & URL don't really apply - this code is for client-side use, not server-side. -It's designed to pass values from a client-side vbscript application directly to MapPoint (installed on the same machine), open MP and map the address(es) sent to it.

    It wouldn't be hard to modify to accomplish publishing maps - and the EULA (2k4 anyway) DOES provide for up to 1000 Internet posted pages

    Dig through MS's MSDN site for MapPoint (developer section) - pretty much all the code you need is there

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MapPoint 2002 with ASP (vbscript)
    By eatech in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 05-05-2005, 05:12 AM
  2. Will Pay $$$ for Assistance - ASP / VBSCRIPT
    By webdbx in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-09-2004, 09:31 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