Hii I am working on project and want to get some data from dataset and want to create and ink stroke
-
hii all I am working on project on Tablet PC I want to create an Ink stroke from the BezierPoints I have already record BezierPointsin the database now i am retrieving the points from database using Dataset and want to recreate the ink stroke using that points My code lines are as below SqlDataAdapter da = new SqlDataAdapter("SELECT BPX,BPY from BezierTable", cn);// where BPX, BPY are Drawing Points DataSet ds = new DataSet(); da.Fill(ds, "BezierTable"); Point[] BezierPoints = Convert.ChangeType(ds, BezierPoints);/// here iam getting error unable to cast dataset Ds to the system to drawing.point BezierPoints Stroke newStroke = inkOverlay.Ink.CreateStroke(BezierPoints); now how i can convert the dataset into System to drawingpoint as my CreateStroke method require argument as System.drawing.point Please help me iam unable to create the stroke from database with regards amit
-
hii all I am working on project on Tablet PC I want to create an Ink stroke from the BezierPoints I have already record BezierPointsin the database now i am retrieving the points from database using Dataset and want to recreate the ink stroke using that points My code lines are as below SqlDataAdapter da = new SqlDataAdapter("SELECT BPX,BPY from BezierTable", cn);// where BPX, BPY are Drawing Points DataSet ds = new DataSet(); da.Fill(ds, "BezierTable"); Point[] BezierPoints = Convert.ChangeType(ds, BezierPoints);/// here iam getting error unable to cast dataset Ds to the system to drawing.point BezierPoints Stroke newStroke = inkOverlay.Ink.CreateStroke(BezierPoints); now how i can convert the dataset into System to drawingpoint as my CreateStroke method require argument as System.drawing.point Please help me iam unable to create the stroke from database with regards amit
I see no problem. You want an array? create one using new. You want some data in the array? create a for/foreach loop and have it stuff the data in the array, one point at a time. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.