Mappoint OCX Programming

John in Oregon
09-27-2007, 02:58 PM
Hi,

I am new to the forum. What I would like to do use use either VB or VFP to access the Mappoint COM object to generate travel maps as graphics in either JPG or TIFF or EPS format. I will provide two addresses in address format (street, city, state,zip) and hope to receive back a graphic image, which can be printed on a postcard or letter. I can store the image in a specific folder or as a binary object in a Foxpro table.

Help is needed on the following:

1. Where can I find a programmers guide or reference that describes the methods and properties of the ActiveX / COm object for Mappoint? I would like to have it in CHM or PDF format, if possible.

2. Can a graphic be created like I need?

3. Can the resolution (DPI) of the graphic be controlled so that a printable size is generated?

4. Does the ActiveX / COM object come with a purchase of Mappoint or is it obtained as a separate purchase?

Thanks you for any help you can provide. If you have any experience programming this type of need, please provide me any information you can. Code examples are appreciated.

Sincerely,

John in Oregon

Mattys Consulting
09-27-2007, 09:36 PM
Hi John,

1) The reference is the programmers information section of the help file.
2) You can use .CopyMap or SaveAsWebPage or print to PDF
(maybe you are using a dll or GDI code to capture?)
3) I don't know
4) The MapPoint ActiveX control is installed with the MapPoint desktop version

Mike Mattys

Wilfried
09-28-2007, 02:28 AM
Hi,

for (3) a possible approach is to do a screen capture. Then you can save the copy in whatever format with whatever DPI with VB or winAPI function calls.

ngenoese
09-30-2007, 02:47 PM
Oreilly has a good book. Programming mappoint in .net.
Hope this helps

 
Web mp2kmag.com
mapforums.com