MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Export Territories

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 ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-28-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Posts: 8
Question Export Territories

Hi all,

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
********************************
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 12-28-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,037
Re: Export Territories

Hi,

Can you tell us what exacly you change to get the fields empty ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-28-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Posts: 8
Re: Export Territories

Quote:
Originally Posted by Wilfried View Post
Hi,

Can you tell us what exacly you change to get the fields empty ?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-29-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,037
Re: Export Territories

Hi,

Possible the changes destroy the previous import. Maybe a workaround is to do it all programatically?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 12-29-2006
Junior Member
White Belt
 
Join Date: Nov 2006
Posts: 8
Angry Re: Export Territories

Quote:
Originally Posted by Wilfried View Post
Hi,

Possible the changes destroy the previous import. Maybe a workaround is to do it all programatically?
Well i'm looking for a workoaround for it. I tried to update my linked data source (txt file), but that doesn't work also.

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
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/export-territories-5532.html

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

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
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


All times are GMT -5. The time now is 03:41 AM.


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

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.


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