Anonymous
05-12-2005, 02:03 PM
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
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
Wilfried
05-16-2005, 12:48 PM
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 :)
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. 8)
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 :mrgreen:
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 :oops:
Wilfried
05-17-2005, 01:31 PM
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...
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"?
Wilfried
05-19-2005, 12:26 PM
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:
Set oApp = CreateObject("MapPoint.Application")
Should it not be:
Set oApp = CreateObject("MapPoint.CoApplication")
??