Community of VE/MapPoint Users and Developers
This is a discussion on Dataset Copy/Paste within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; What is the purpose of the Copy/Cut/Paste methods of the dataset object? I assumed that it was there so you ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Dataset Copy/Paste DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy() LayersMap.ActiveMap.DataSets.AddPushpinSet("My Stuff").Paste() The code above actually compiles and runs with no issue. And if you display the Dataset.Count property of the second control (LayersMap) it now contains an additional dataset named "My Stuff". This problem it seems is that I have not been able to get the secondary map to actually show the pushpins on the map. Why not? This seems like it *should* work. I even tried adding a pushpin to that set and then deleting it to force the map to refresh. No dice. Any thoughts?? This would really be cool if this idea could actually be made to work. Opens up a lot of possibilities. Toby Miller |
| |||
|
Well after researching further, the Dataset.Copy and Dataset.Paste commands only deal with the dataset definition itself and not the underlying pushpins (recordset). If you display Dataset.RecordCount() after the paste it is 0. What useful purpose does this serve? Does anyone see any magical way to make this work? |
| |||
|
This will do what you are wanting it to do. Rather than: DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy() LayersMap.ActiveMap.DataSets.AddPushpinSet("My Stuff").Paste() Try: DisplayMap.ActiveMap.DataSets.Item("My Stuff").Copy() LayersMap.ActiveMap.Paste() I have gotten this to achieve the desired "layering" effect. |
![]() |
| Tags |
| copy or paste, dataset |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DataSet.Paste: Exception from HRESULT: 0x80040E04 (vb.NET) | thomas | MapPoint 2006/2009 Discussion | 4 | 03-14-2006 03:09 PM |
| Would like to buy a used copy of MP2002 or S&T2002. | Jimsim | MapPoint 2006/2009 Discussion | 3 | 04-08-2005 10:28 AM |
| Cut and Paste Problem with Word 2003 and MapPoint 2004 | brubli | MapPoint 2006/2009 Discussion | 0 | 10-21-2004 05:26 PM |
| Problems with copy and paste of user-defined territories | Ute | MapPoint 2006/2009 Discussion | 2 | 04-14-2003 12:38 PM |
| Hi there - I am trying to copy several maps into P.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-01-2002 04:42 PM |