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

Printing

This is a discussion on Printing within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have an Access report which lists a number of client locations. For each record in the report I'd like ...

  1. #1
    plevine1 is offline Junior Member Yellow Belt
    Join Date
    Jun 2006
    Posts
    16

    Printing

    I have an Access report which lists a number of client locations. For each record in the report I'd like to add a map to the location. Any thoughts or samples on an easy way to do this.
    Thanks

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

    You dont describe exacly what you want, but just create a Location object for each lat/long pair, zoom in to the altitude you want (eg 1 is max zoom), et voila you have the map

  3. #3
    plevine1 is offline Junior Member Yellow Belt
    Join Date
    Jun 2006
    Posts
    16
    I have a report which is basically a collection list. I contains a customer name and address. There might be as little as one customer or as many as 20 on the list. In addition to the name and address info I want to print a map of each customer on the list. I don't need a route between locations.

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

    This should have you started. You can also place a pushpin on that location to show more exact. Also the Goto() does only zoom a little. You can set Altitude to a low value for a better zoom.

    Code:
    FindResults results = MP.ActiveMap.FindAddressResults(street, city, othercity, region, zip, country);
    
    if (results.ResultsQuality <= GeoFindResultsQuality.geoAmbiguousResults)
        foreach (object o in results) {
            Location loc = o as Location;
            if (loc != null) {
                loc.GoTo();
                break;

  5. #5
    plevine1 is offline Junior Member Yellow Belt
    Join Date
    Jun 2006
    Posts
    16
    Wilfried
    I assume that I add the MapPoint Activex control to my report, do I then add your sample code to the Open event of the report? Do you have a sample report I might be able to review or know a web site where I can find a sample.
    Thanks

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

    Yes you have to add the activeX component to your form. open a map, and then you can go on with this code. You can ask any other programming problem on this forum. We are glad to help if needed

  7. #7
    plevine1 is offline Junior Member Yellow Belt
    Join Date
    Jun 2006
    Posts
    16
    I added the MapInfo MapX V3 activex control to my report. I'm a little confused (ok, a lot) as to where I am placing the sample code you provided. Would it be the "ON OPEN" event or someplace else?
    Thanks

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

    Ok, no problem. First of all you have to open a map with it. Then you can go to geocordinates and so. I cannot advice in VBA because I never used it, but there are some code samples in the help in VB witch whould you get going also. I give some examples in C#, so it will be no problem for you to translate in VBA I hope

    To open a map:

    Code:
                try {
                    MP.NewMap(GeoMapRegion.geoMapEurope);
                } catch (Exception ex) {
                    // something wrong here, log the ex.Message
                }
    if you have north americ map then the parameter should be GeoMapRegion.geoMapNorthAmerica;

    The map should open. Then try with a button or so the other code I provided, to see where you going. If you have other doupts / questions just fire them here

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Printing the map legend
    By jimsirv in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-18-2004, 03:32 PM
  2. Mural Printing?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-26-2004, 11:45 AM
  3. Printing
    By cbonner in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-01-2003, 10:00 AM
  4. Map Printing
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-11-2003, 12:16 PM
  5. Printing a map
    By George in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-28-2002, 04:11 PM

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