AD
Administrator
Syncfusion Team
May 5, 2006 01:59 PM UTC
Hi James,
Your Direct-Trac incident 25303 in this regard has been updated. Please refer to my response there and let me know if you need any other information.
We appreciate your interest in Essential Edit.
Regards,
Ebenezer.P
JA
James
May 8, 2006 05:05 PM UTC
OK - for any of you wanting to know the solution here it is. This is now working thanks on part to the help of the tech support guys.
To Save the contents of an editControl :-
byte[] b = null;
ASCIIEncoding ae = new ASCIIEncoding();
b = ae.GetBytes(this.editControl1.Text);
I can then assign the value of b directly to my parameter in my stored procedure (which is sql sever "image" type).
To restore the contents :-
System.Data.SqlClient.SqlDataReader MyReader = cmdOpenMacro.ExecuteReader(CommandBehavior.CloseConnection);
if (MyReader.Read())
{
Stream s = new MemoryStream((byte[])MyReader.GetValue(0));
editControl1.LoadStream(s, editControl1.Configurator[ "MyLanguage" ]);
}
Hope that helps anyone else struggling with this one!
Cheers.
James.