MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




compatibility java and asp

This is a discussion on compatibility java and asp within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I would want to know if it is posible to integrated mappoint in a application and how to do it. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
compatibility java and asp

I would want to know if it is posible to integrated mappoint in a application and how to do it. The application is developed with java or asp.

If anyone know how can I do one of this things, I thanks you.
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 02-23-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ASP compatibility

You can use Mpp with ASP.
First you install it on the server then you can call the application object as any COM object.


<%option explicit %>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%
dim oApp, oMap, strUID

'Instantiate your objects
Set oApp = Server.CreateObject("MapPoint.Application.eu")
set oMap = oApp.newMap

'Set up application and objects to use
oApp.Visible = False
oApp.UserControl = False

call shadedAreas

private sub shadedAreas ()' Here I import a serie of data by postcode in the UK
dim strCsvPath, objDataMap, oDs

'Change the map style to display DataMap
oApp.ActiveMap.MapStyle = 2

'CSV text file (242 is for geoCountryUnitedKingdom, 44 for geoDelimiterComma and 0 for geoImportFirstRowIsHeadings)
Set oDS = oApp.ActiveMap.DataSets.ImportData("c:\book1.csv", ,242,44,0)

'Create the data map ( 1 is for geoDataMapTypeShadedArea, for 1 geoRangeTypeContinuous and 13 for geoColorScheme)
Set objDataMap = oDS.DisplayDataMap(1, oDS.Fields(2),,,1,,13)

'obviously save the map
call SaveMap

end sub

private sub SaveMap()
Set oMap = oApp.ActiveMap
oMap.DataSets.ZoomTo
oMap.Altitude = oMap.Altitude * 1.3
'Save the map as a web page (toto is just a dummy name for the file)
oMap.SaveAs "c:\toto",2, True ' (2 is for geoFormatHTMLMap)
end sub

'Quit without saving
oApp.ActiveMap.Saved = true
oApp.Quit
%>
<title>map</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head><body>[img]file:///C|/toto_files/image_map.gif[/img]</body>
</html>
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 04-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Don't work

I have tried to do that but don't work. Give me an error 500. Why could be??
Thanx in advance
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 04-19-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
ASP compatibility

The error comes from your windows security settings.
You need to access as local admin (wich would outraged my Windows admins if only they knew). Even so the settings are fairly tricky and even after having it set on a couple of servers I don't get it easily now. It work nicely thought, once set.
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
asp, compatibility, java


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 java support Anonymous MapPoint Web Service and Virtual Earth 9 02-20-2009 12:28 AM
Using MapPoint 2003 with Java Anonymous MapPoint 2006/2009 Discussion 3 09-19-2008 11:46 AM
java issue Anonymous MapPoint 2006/2009 Discussion 1 03-01-2005 05:11 PM
Mappoint 2004 & Office 2003 compatibility problem javigdiaz MapPoint 2006/2009 Discussion 2 12-16-2004 09:24 AM
something like mappoint, but for java... Joeba MapPoint 2006/2009 Discussion 2 12-03-2002 09:14 AM


All times are GMT -5. The time now is 12:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Florida Holiday
Book your Florida holiday through UlookUbook and save cash!



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