PDA

View Full Version : custom MapPoint DataSet



xonji
10-13-2011, 01:51 AM
Hi to all,

Im stuckin, at a Problem :wheelchair: . I was tryin to fill my own DataSet but the only way i could do that is to fill it with that importData()-function wich only accepts filebased data.

But i want data from a System.Data.DataTable to put into a MapPoint.DataSet.

Is there someone who imported some Data on this way?

Or is it possible to use the importData function with something like a System.Data.DataTable?

I hope someone can help me.

best regards
xonji

Eric Frost
10-13-2011, 12:24 PM
I don't really know how to do this. You can add Pushpins and then become part of a dataset, but then you don't get any Fields or other data say for doing a Multiple Symbol map or ranges. (Note you could have code for setting the Pushpin symbol based on your own logic, if that helps).

I think maybe a quick and dirty workaround would be to write your data to a delimited text file and then have MapPoint import the text file.

Eric

xonji
10-14-2011, 03:09 AM
I don't really know how to do this. You can add Pushpins and then become part of a dataset, but then you don't get any Fields or other data say for doing a Multiple Symbol map or ranges. (Note you could have code for setting the Pushpin symbol based on your own logic, if that helps).

I think maybe a quick and dirty workaround would be to write your data to a delimited text file and then have MapPoint import the text file.

Eric

Thank you Eric,

Thats what I'm doing after founding out that its isnt possible with the map point api to fill your own Data from a DataTable.

Now I'm creating a .csv file in which my data is piped, its not a persistent file, after closing the program the file is going to be deleted.

thanks for your reply

best regards
xonji

Eric Frost
10-14-2011, 01:03 PM
Great! glad you got it working.