Community of VE/MapPoint Users and Developers
This is a discussion on Export Territories within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all, I Have the mappoint control in my vb.net application and i import on the fly territories. When ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I Have the mappoint control in my vb.net application and i import on the fly territories. When I press F6, the territory manager appears and i can add/remove areas to a territory Now i want to export these territories (for updating my database). I can do this with the code at the bottom of this message. The problem i have is that it only works before i change something. When i change something te fields in the recordset are empty. Does somebody has a solution ? I would very appreciate it. ******************************** For Each ds As MapPoint.DataSet In mp.ActiveMap.DataSets If ds.DataMapType = MapPoint.GeoDataMapType.geoDataMapTypeTerritory Then Dim rset As MapPoint.Recordset Dim results As String = "" If ds.RecordCount > 0 Then rset = ds.QueryAllRecords rset.MoveFirst() Do While Not rset.EOF For Each fld As MapPoint.Field In rset.Fields results += fld.Value.ToString() + " " Next results += vbCrLf rset.MoveNext() Loop MsgBox(results) End If End If Next ******************************** |
| |||
| Re: Export Territories
Hi, Can you tell us what exacly you change to get the fields empty ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: Export Territories Quote:
The only thing I change is a territory. For example, Bill has a territory set to Paris and i add some cities around Paris into the territory From that point, the recordset from the map dataset has lost his fields, so i cant loop anymore in it. I can loop in the records of the recordset but not anymore in de fields of the recordset. Recordset.fieldcount = 0 Maybe there is someway to refresh the dataset ?? I really don't know |
| |||
| Re: Export Territories
Hi, Possible the changes destroy the previous import. Maybe a workaround is to do it all programatically?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Quote:
Does somebody now another way to export my territory updates ? If I have one, it's oke, then i'll program it that way thx |
![]() |
| ||||
| Posted By | For | Type | Date | |
| MP2K Update Archives - MP2K Magazine | This thread | Refback | 01-07-2007 11:30 AM | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 01-06-2007 12:36 AM | |
| Finding Sites Within a Specified Distance From an Address - MapPoint Articles - MP2K Magazine | This thread | Refback | 01-04-2007 05:50 AM | |
| Top 100 vBulletin Forums: MapPoint Forums | This thread | Refback | 01-02-2007 12:56 PM | |
| The Magazine for MapPoint - MP2K Magazine | This thread | Refback | 12-28-2006 07:26 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Export to shapefile | davide_mappoint | MapPoint 2006/2009 Discussion | 3 | 10-28-2005 10:03 AM |
| Territories creating city territories | cableghost | MapPoint 2006/2009 Discussion | 8 | 08-30-2005 03:47 PM |
| how to add postal code to territories for an excel export ? | nat | MapPoint 2006/2009 Discussion | 3 | 05-25-2005 06:23 AM |
| How can I export POI data? | Wavshrdr | MapPoint 2006/2009 Discussion | 3 | 10-27-2004 02:45 PM |
| Export map to gif | pd1 | MapPoint 2006/2009 Discussion | 1 | 02-19-2003 01:36 PM |
Newcastle Flights
For details on Newcastle flights visit Holiday Hypermarket. We don't just book holidays, we provide useful information about airports too.
Turkey Holidays
Find and book Turkey Holidays with Travel Counsellors. Holiday destinations around the world including Turkey.
Portugal Holidays
Lisbon is perhaps Europe's most pleasant and affordable city. Check out the fantastic architecture, delicious seafood and non-stop night-life. Book Portugal Holidays with us.
Holidays in Cuba
Holidays in Cuba are an eclectic mix of golden beaches, rich, colourful scenery and a proud cultural heritage. Book a break in Cuba now!
Cheap Greece Holidays
For cheap Greece holidays make sure you know when to book and who to book with. Visit ulookubook.com to get help with doing both of those things. Why not time your visit with a Greek festival?
Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk
Holidays in Lanzarote
A quality luxury hotel awaits your patronage in the Canary Islands. Get information on holidays in Lanzarote at On The Beach.