Hello!
I'm trying to loading a varbinary(max) field in RTF Component, but it's not working.
I changed the DataColumn of the RTF component, like describe in manual, but nothing appears in report. http://www.stimulsoft.com/en/documentat ... _field.htm
The type of field in Dictionary is byte[].
There is a way to convert this field (varbinary(max))/byte[] to RTF directly? Because i not found anything that explains this, and in C# i use :
" ASCIIEncoding encoding = new ASCIIEncoding();
rich.Rtf = encoding.GetString(byte[]);"
Thanks!!
These are some pictures:
Loading varbinary(max)/byte[] into RTF Component
-
- Posts: 10
- Joined: Tue Oct 15, 2013 7:49 pm
- Location: Itaúna, Minas Gerais, Brasil
Re: Loading varbinary(max)/byte[] into RTF Component
Hello.
Please add next code in the GetData event of the RichText component:
Thank you.
Please add next code in the GetData event of the RichText component:
Code: Select all
e.Value = StiRichText.PackRtf(System.Text.Encoding.UTF8.GetString(your_dataSource.your_field));
-
- Posts: 10
- Joined: Tue Oct 15, 2013 7:49 pm
- Location: Itaúna, Minas Gerais, Brasil
Re: Loading varbinary(max)/byte[] into RTF Component
That's it!
Thanks, now the rtf field is working properly.
Thanks, now the rtf field is working properly.
Re: Loading varbinary(max)/byte[] into RTF Component
Hello,
Great!
Thank you for letting us know about this.
Great!
Thank you for letting us know about this.