MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Where are my Push Pins! Help!

This is a discussion on Where are my Push Pins! Help! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; After struggling to find how to programmatically control mappoint in VB6 I at last managed to set up a data ...


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-19-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 3
Where are my Push Pins! Help!

After struggling to find how to programmatically control mappoint in VB6 I at last managed to set up a data link that I can refresh from code e.g. Timer etc.

All seems to work exactly as I need it but, it links the data and displays the map but does not display the push pins! If I run the Wizard to link the data the push pins are shown. However, although my code lets me show the map and update the link and import the push pin set perfectly, it does not display the push pins on the map.

As I am very new to this I expect as usual I am missing the point somewhere. What am I doing wrong? Any help on this one would be gratefully received. Things are now getting very frustrating!

Enclosed a sample of the code I used.

Flymoe

Public objApp As New MapPoint.Application
Public szconn As String
Public oDS As MapPoint.DataSet
Public objPin As MapPoint.Pushpin
Public objField As MapPoint.Field

Sub MyMap()


objApp.Visible = True
objApp.UserControl = True

With objApp.OpenMap("C:\testmap.ptm", True).DataSets
szconn = "C:\maps\tables.mdb!areas2"
Set oDS = .LinkData(szconn, "Position", , geoCountryUnitedKingdom, , geoImportAccessTable)
oDS.DisplayPushpinMap
oDS.Symbol = 1

End With

End Sub
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-20-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 3
All Sorted!

Works fine now! All sorted now I have included the ArrayOfFields parameter

Flymoe
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
pins, push


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
Push Pins 02bsurfn MapPoint 2006/2009 Discussion 4 02-08-2005 06:21 AM
PUSH PINS a_cajun_2 MapPoint 2006/2009 Discussion 1 01-07-2005 07:05 PM
Push Pins Anonymous MapPoint 2006/2009 Discussion 2 04-14-2004 06:16 AM
Push Pins Anonymous MapPoint 2006/2009 Discussion 1 04-09-2004 12:35 PM
Push Pins Ravi1 MapPoint 2006/2009 Discussion 2 10-21-2003 06:03 PM


All times are GMT -5. The time now is 06:05 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

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked 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