Hello
I developp an add-in for MapPoint 2004 in C sharp and I want to list all the pushpin's name that are in the map
for example I load an excel file that have 5 groups of pushpins and I want to enumerate all of them in a listbox, how can I do this ?
whith this code I can only access to the first pushpin, but not the others:
thanksobject o = 1;
MapPoint.DataSet ds = app.ActiveMap.DataSets.get_Item(ref o);
MapPoint.Recordset rs = ds.QueryAllRecords();
rs.MoveFirst();
while (!rs.EOF)
{
MapPoint.Location loc = rs.Pushpin.Location;
MessageBox.Show(loc.Name);
rs.MoveNext();
}