MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 05:38 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Catered Chalet
Book a catered chalet online through Holiday Hypermarket. It's easy to use the ski holidays search to find the right holiday for you.

Flights to Greece
Find cheap flights to Greece on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Greece.

Thailand Holiday
A Thailand Holiday has much to offer with historic culture, lively arts, beautiful beaches, a good nightlife, friendly and hospitable people and one of the best cuisines in the world.

Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

Inclusive Holidays
At Travel.co.uk travel comparison will help you plan the perfect inclusive holidays.

Cheap Holidays in Florida
Legendary weather! Visit On The Beach for info on cheap holidays in Florida.


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