MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




MapPoint Control created dynamically

This is a discussion on MapPoint Control created dynamically within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; the following fails dim mp as MappointControl set mp = CreateObject( "MapPoint.Control 0.9" ) error: ActiveX component can't create object ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2002
Junior Member
White Belt
 
Join Date: Nov 2002
Posts: 1
MapPoint Control created dynamically

the following fails

dim mp as MappointControl

set mp = CreateObject( "MapPoint.Control 0.9" )
error: ActiveX component can't create object

set mp = CreateObject( "MapPoint.Control" )
error: Type Mismatch

Is there a way to create a Mappoint object without placing it on a form?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-12-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
If you don't need the ActiveX Control on the form why not just use Automation?

Most of the samples in the help file are using that method, not the MapPoint ActiveX Control.

Consider this sample from the help file: "OpenMap method (Application)"

Sub OpenSampleMap()

Dim objApp As New MapPoint.Application

'Set up application
objApp.Visible = True
objApp.UserControl = True

'Open a sample map
objApp.OpenMap objApp.Path + "\Samples\Clients.ptm"

End Sub

If you don't need to see the map to do what you are doing, set the objApp.Visible = False
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
control, created, dynamically, mappoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Can Streets and Trips open maps created with MapPoint? alwasl8 MapPoint 2006/2009 Discussion 1 08-17-2005 04:48 PM
Re: Keyboard control in mappoint activex control djcapslock MapPoint 2006/2009 Discussion 1 03-10-2005 10:16 AM
Dynamically updating a map point without refreshing in Web Anonymous MapPoint Web Service and Virtual Earth 0 07-23-2004 12:22 PM
I am new to MapPoint and have created a push pin m.... Anonymous MapPoint 2006/2009 Discussion 1 01-30-2002 01:14 PM
Can MP2K link with SQL 7.0 data dynamically?.... Anonymous MapPoint 2006/2009 Discussion 1 08-02-1999 11:48 PM


All times are GMT -5. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Algarve Holiday
Portuguese all year round sunshine is some of what awaits you if you choose the Algarve holiday option through UlookUbook!



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