How do I Load Binary Data From Database into Wisej Controls & Which Control can I Use?

0
0

Dear Friends, Greetings

I’ve been using DevExpress XtraRichEditControl to display formated documents saved in a Database using the code below;

Dim docData As Byte()
docData = CType(_dbBll.ReadTorreyReference(TopicID), Byte())
Using stream As Stream = New MemoryStream(docData )
XtraRichEditControl1.LoadDocument(stream)
End Using

I load this data as Object DataType and convert it to Bytes and I use a stream to display it in an XtraRichEditControl.

How can I achieve the same in WiseJ.Net?

Thanks

  • You must to post comments
0
0

Hi Ngabo,

You’ll have to write your own custom implementation for that!

It’s relatively easy, you can use TinyEditor,CKEditor as a Rich Text Editor, or AceEditor if it’s something like an XML document!

What you can do is simply get the string from your stream:

LocalEncoding.GetString(stream.ToArray());

And set the text to any of those controls!

HTH,
Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.