map loading problem with MappointControl.ocx

yooishung
06-21-2004, 10:01 PM
I am facing the problem of loading a new map using the template map:

MappointControl1.NewMap geoMapEurope

The run-time error is:

Run-time error '-2147181454(80049c72)';
The called element in the listing is not found. Use a correct name or correct index number.

Before running the program, i have installed the MapPoint 2004 European Edition successfully.

Is anyone know what is problem?


Thanks a lot.

John Meyer
06-22-2004, 08:34 AM
Try enclosing in ()

Dim objmap As MapPointCtl.Map
Set objmap = MappointControl1.NewMap(geoMapEurope)

or

Set objmap = MappointControl1.NewMap(2)

 
Web mp2kmag.com
mapforums.com