Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
I am working on one of my project of handwriting synthesis using microsoft.ink dll, i have certain bezier points of the ink stroke
i want store set of bezier points of array in sql server single row using comma separated values

kindly suggest me how to do this , and after wards want to split all desire point from CSV (comma separated values) to regenerate the stroke
kindly help me out



thanks and regards
GoogleJumbo
Posted

1 solution

Just consider the CSV as a string type that you store into a single column. It's not very efficient to send those values all as separate values to the database server and concatenate them there. The same goes for splitting, just do this in your c# code. So it's actually a simple text/ntext or varchar column.

Good luck!
 
Share this answer
 
Comments
googlejumbo 28-Jan-11 8:49am    
can u suggest any code
googlejumbo 28-Jan-11 8:53am    
Actually i was facing one problem when initailly i was storing set of array values let say 40 records in db and when retrieving all records , iwant to regenerate my ink stroke but typing casting errors comes into play cant convert system.object to system.drawing.point thats why i think of csv solution
E.F. Nijboer 28-Jan-11 9:58am    
Could you maybe add the c# code to your initial question? I can then have a look at it and hopefully spot the problem. Also check this link to a simple example that might be helpful (when using that code you would need to add a comma when converting different types to a list):
http://dotnetperls.com/list-string-conversion

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900