MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Clientside VBScript and MapPoint?

This is a discussion on Clientside VBScript and MapPoint? within the MapPoint 2006/2009 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 ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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!
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 03-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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!
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 03-08-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 03-09-2004
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-14-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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
clientside, mappoint, vbscript


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/clientside-vbscript-mappoint-2555.html

Posted By For Type Date
Embedding MappointControl in IE - microsoft.public.mappoint | Google This thread Refback 11-20-2007 12:20 PM

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
MapPoint 2002 with ASP (vbscript) eatech MapPoint 2006/2009 Discussion 6 05-05-2005 05:12 AM
Will Pay $$$ for Assistance - ASP / VBSCRIPT webdbx MapPoint 2006/2009 Discussion 1 07-09-2004 09:31 PM


All times are GMT -5. The time now is 06:37 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