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

compatibility java and asp

This is a discussion on compatibility java and asp within the MapPoint Desktop 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. ...

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

    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.

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

    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>

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

    Don't work

    I have tried to do that but don't work. Give me an error 500. Why could be??
    Thanx in advance

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

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mappoint java support
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 9
    Last Post: 02-20-2009, 01:28 AM
  2. Using MapPoint 2003 with Java
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-19-2008, 12:46 PM
  3. java issue
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-01-2005, 06:11 PM
  4. Mappoint 2004 & Office 2003 compatibility problem
    By javigdiaz in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-16-2004, 10:24 AM
  5. something like mappoint, but for java...
    By Joeba in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-03-2002, 10:14 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