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

Saving mappoint images in bulk

This is a discussion on Saving mappoint images in bulk within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am creating a report and I would like to have a 'heat map' based on zip code within ...

  1. #1
    anatkramer is offline Junior Member White Belt
    Join Date
    Nov 2008
    Posts
    1

    Saving mappoint images in bulk

    Hi,

    I am creating a report and I would like to have a 'heat map' based on zip code within the report. In order to do this, I need the image of the map in an image format. I can do this on my own in mappoint and it comes out perfect; however, I want to do this automatically. The process should be as follows :
    Enter data (possibly from excel)
    Graph the 'heat map' using mappoint
    Save as image with a pre-determined file name.

    What are my options?

    Thanks,
    Anat

  2. #2
    mila is offline Junior Member Yellow Belt
    Join Date
    Jul 2008
    Posts
    16

    Re: Saving mappoint images in bulk

    Hi Anat,

    I can give you some idea.
    For example, to save the map as an image file you can use the following code.
    This code allows you to save the map to the clipboard and save the contents of the clipboard into a file format image:


    'Copy the map to the clipboard
    oMap.CopyMap()


    IfNot System.Windows.Forms.Clipboard.GetDataObject() IsNothingThen
    Dim oDataObj As IDataObject = System.Windows.Forms.Clipboard.GetDataObject()
    If oDataObj.GetDataPresent(System.Windows.Forms.DataF ormats.Bitmap) Then
    oImgObj = oDataObj.GetData(DataFormats.Bitmap, True)
    oImgObj.Save(
    "C:\MapActual.bmp", System.Drawing.Imaging.ImageFormat.Bmp)
    EndIf
    EndIf

    ''''NOTES:

    Notes:
    "System.Drawing.Imaging.ImageFormat.Bmp"

    Can be: System.Drawing.Imaging.ImageFormat.Png,
    System.Drawing.Imaging.ImageFormat.Icon
    System.Drawing.Imaging.ImageFormat.Jpg

    ....
    You can check with a swicth case of what format it is

    I hope that this will help you

    Greetings!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Saving MapPoint Legends in .NET
    By lzeitz in forum Development
    Replies: 5
    Last Post: 10-15-2008, 09:09 AM
  2. Bulk Geocoding using Mappoint
    By madhus77 in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 07-22-2008, 10:31 AM
  3. New Bulk Plans and Reduced Pricing for Microsoft MapPoint Web Service
    By Eric Frost in forum News and Announcements
    Replies: 0
    Last Post: 02-14-2007, 05:43 PM
  4. saving mappoint route in a file
    By giaarcix in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-28-2006, 09:10 AM
  5. MapPoint hangs when saving map as HTML
    By tfmiltz in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-13-2005, 02:16 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 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127