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

Open MapPoint INSIDE browser windows

This is a discussion on Open MapPoint INSIDE browser windows within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi guys, I have a question for you, as I just started playing with MP. The scenario is this. I ...

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

    Open MapPoint INSIDE browser windows

    Hi guys, I have a question for you, as I just started playing with MP.

    The scenario is this.
    I connect to a web server that show me some tables i.e. customers addresses.

    I have MapPoint installed on the client computer so I can easily create a
    script on the server that dynamically generates an html page with Clientside vbscript to plot the addresses on a map.

    The html page would use something like

    <script language="VBScript">
    Set oApp = CreateObject("MapPoint.Application")
    Set oMap = oApp.ActiveMap
    oApp.Visible = True
    oApp.UserControl = True
    ...... my code to draw data ....
    </script>

    Now this method opens MapPoint in a separate window...
    What I would like to have is opening it INSIDE the browser window. In this way I could put in a left frame some html/vbscript code to control/update the map in the other frame....


    Any tip?

    TIA

    Xlup

  2. #2
    Xlup is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3
    Another way would be to directly generate the .ptm file on the server and send it to the browser....

    Is there a way to do this without installing MapPoint on the server (thing that I cannot do) ?

    Thanks again for the Help

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Latest approach is not cofform with end user agreement, however there is difference if it is in a closed user group on a LAN. Please read it carefully.

    For the former I dont know, but I should use a different approach. Instead of using a browser you can embed mappoint component in your VB program, and instead of using VB script you can communicate with server with own made protocol. If it should be HTTP server you can tunnel your proto into HTTP.

    Or let the server (via HTTP proto give you the information you need, and let the client program handle all).

    Other approach are possible too. This is what just play in the top of my head Could be something different tomorrow

  4. #4
    Xlup is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3
    Quote Originally Posted by Wilfried
    Hi,
    Latest approach is not cofform with end user agreement, however there is difference if it is in a closed user group on a LAN. Please read it carefully.
    In my case I think it should be ok for the licence, as the thing is used by a very few users each one with a mappoint licence... however is a difficult system

    The thing is simple: we have a web based sales analysis tool that generates some reports (using php).
    What I want to do is this: when I have a list of customer addresses on the web report the user can simply click on a button and the result is to have a map with a pushpin for each customer.
    The users already have their own Mappoint installation (they normally use it importing data from excel), so I must simply send them the correct source code (build dinamically) to draw the data

    The web app. layout is classical, with a fixed left menu (reports titles) and a right one with the data: it would be the best to have mappoint that opens up in this frame, so that the user can work on it or quickly switch to another report....

    The code I use now is the one at the top of the page but when called mappoint is launched in its own window.....

    If I save a ptm file and put it on the web server, and then I link to it from a page on the right frame, the map is correctly opened inside the right frame...

    I think the problem is only a matter of how the mappoint.application is called by the clientside vbscript code... But I'm not too much expert on vbscript

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I think licence is OK from what you say. I'm sorry I dont know nothing about VBScript

    But instead of that the server generate a VBScript for a map, you can let the server generate parameters, and let the clients generate the map themselfe. I think this is more simple.

    for the VBScript I think others can jump in here...

  6. #6
    Xlup is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    3
    Quote Originally Posted by Wilfried
    Hi,
    But instead of that the server generate a VBScript for a map, you can let the server generate parameters
    Hi Wildfried, thank you for the reply. This is exactly what I'm already doing with VBScript... the server dinamically builds the "source" VBScript (with the parameters), sends it to the client browser, and the client executes it...

    Is there another way to "generate the parameters"?

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    HI,

    I was thingking on seme other approach. Instead of that the server generate a script to execute at client side, the server could generate parameters needed, and you control it all on client side. Maybe I'm not clear because of my English, but I think your approach should work also.

    I check your original post:

    Code:
    Set oApp = CreateObject&#40;"MapPoint.Application"&#41;
    Should it not be:

    Code:
    Set oApp = CreateObject&#40;"MapPoint.CoApplication"&#41;
    ??

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to open MapPoint 2004
    By carlos_pr21 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-28-2006, 02:08 PM
  2. Color orthographic images made available inside Map-In-A-Box
    By Anonymous in forum News and Announcements
    Replies: 0
    Last Post: 09-24-2004, 02:35 PM
  3. gettign teh area inside a polygon or territory
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-18-2003, 06:21 PM
  4. Exporting places inside a selection to Excel
    By Pat Lee in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-09-2003, 10:10 AM
  5. How can I upload my map into browser,and allowing ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-19-2001, 12:51 AM

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