Hi there,
i was wondering if there's a possibility to link a rtf-textbox directly to a database field in which the rtf data is saved in binary or is there just the way of converting the text in an additional layer?
Kind of property of the textbox would be great for a future release, if it's not implemented yet.
Sincerely,
Graziano von Allmen
Binary RTF
Binary RTF
Hello,
Please use property DataColumn of RichText box component.
Thank you.
Please use property DataColumn of RichText box component.
Thank you.
Binary RTF
Hi, thanks for the quick reply,
I tried that, but it does probably only work in text format, not in binary.
Small Example:
It does work if it looks like this:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Myriad Web;}{\f1\fnil\fcharset0 Arial;}}..{\colortbl ;\red0\green0\blue0;}..{\*\generator Riched20 5.50.99.2010;}\viewkind4\uc1\pard\cf1\f0\fs18\lang2055 Besten Dank f\'fcr Ihre Anfrage vom 7.April 2008. Gerne offerieren wir Ihnen gem\'e4ss unseren allgemeinen Gesch\'e4ftsbedingungen die gew\'fcnschten Produkte und Dienstleistungen wie folgt:\cf0\f1\fs20..\par \fs20\lang1031..\par }..
I'd like to make it work if it looks like this:
0x 7B 5C 72 74 66 31 5C 61 6E 73 69 5C 64 65 66 66 30 7B 5C 66 6F 6E 74 74 62 6C 7B 5C 66 30 5C 66 6E 69 6C 5C 66 63 68 61 72 73 65 74 30 20 4D 79 72 69 61 64 20 57 65 62 3B 7D 7B 5C 66 31 5C 66 6E 69 6C 5C 66 63 68 61 72 73 65 74 30 20 41 72 69 61 6C 3B 7D 7D 0D 0A 7B 5C 63 6F 6C 6F 72 74 62 6C 20 3B 5C 72 65 64 30 5C 67 72 65 65 6E 30 5C 62 6C 75 65 30 3B 7D 0D 0A 7B 5C 2A 5C 67 65 6E 65 72 61 74 6F 72 20 52 69 63 68 65 64 32 30 20 35 2E 35 30 2E 39 39 2E 32 30 31 30 3B 7D 5C 76 69 65 77 6B 69 6E 64 34 5C 75 63 31 5C 70 61 72 64 5C 63 66 31 5C 66 30 5C 66 73 31 38 5C 6C 61 6E 67 32 30 35 35 20 42 65 73 74 65 6E 20 44 61 6E 6B 20 66 5C 27 66 63 72 20 49 68 72 65 20 41 6E 66 72 61 67 65 20 76 6F 6D 20 37 2E 41 70 72 69 6C 20 32 30 30 38 2E 20 47 65 72 6E 65 20 6F 66 66 65 72 69 65 72 65 6E 20 77 69 72 20 49 68 6E 65 6E 20 67 65 6D 5C 27 65 34 73 73 20 75 6E 73 65 72 65 6E 20 61 6C 6C 67 65 6D 65 69 6E 65 6E 20 47 65 73 63 68 5C 27 65 34 66 74 73 62 65 64 69 6E 67 75 6E 67 65 6E 20 64 69 65 20 67 65 77 5C 27 66 63 6E 73 63 68 74 65 6E 20 50 72 6F 64 75 6B 74 65 20 75 6E 64 20 44 69 65 6E 73 74 6C 65 69 73 74 75 6E 67 65 6E 20 77 69 65 20 66 6F 6C 67 74 3A 5C 63 66 30 5C 66 31 5C 66 73 32 30 0D 0A 5C 70 61 72 20 5C 66 73 32 30 5C 6C 61 6E 67 31 30 33 31 0D 0A 5C 70 61 72 20 7D 0D 0A
(BLOB in the Database)
I tried that, but it does probably only work in text format, not in binary.
Small Example:
It does work if it looks like this:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Myriad Web;}{\f1\fnil\fcharset0 Arial;}}..{\colortbl ;\red0\green0\blue0;}..{\*\generator Riched20 5.50.99.2010;}\viewkind4\uc1\pard\cf1\f0\fs18\lang2055 Besten Dank f\'fcr Ihre Anfrage vom 7.April 2008. Gerne offerieren wir Ihnen gem\'e4ss unseren allgemeinen Gesch\'e4ftsbedingungen die gew\'fcnschten Produkte und Dienstleistungen wie folgt:\cf0\f1\fs20..\par \fs20\lang1031..\par }..
I'd like to make it work if it looks like this:
0x 7B 5C 72 74 66 31 5C 61 6E 73 69 5C 64 65 66 66 30 7B 5C 66 6F 6E 74 74 62 6C 7B 5C 66 30 5C 66 6E 69 6C 5C 66 63 68 61 72 73 65 74 30 20 4D 79 72 69 61 64 20 57 65 62 3B 7D 7B 5C 66 31 5C 66 6E 69 6C 5C 66 63 68 61 72 73 65 74 30 20 41 72 69 61 6C 3B 7D 7D 0D 0A 7B 5C 63 6F 6C 6F 72 74 62 6C 20 3B 5C 72 65 64 30 5C 67 72 65 65 6E 30 5C 62 6C 75 65 30 3B 7D 0D 0A 7B 5C 2A 5C 67 65 6E 65 72 61 74 6F 72 20 52 69 63 68 65 64 32 30 20 35 2E 35 30 2E 39 39 2E 32 30 31 30 3B 7D 5C 76 69 65 77 6B 69 6E 64 34 5C 75 63 31 5C 70 61 72 64 5C 63 66 31 5C 66 30 5C 66 73 31 38 5C 6C 61 6E 67 32 30 35 35 20 42 65 73 74 65 6E 20 44 61 6E 6B 20 66 5C 27 66 63 72 20 49 68 72 65 20 41 6E 66 72 61 67 65 20 76 6F 6D 20 37 2E 41 70 72 69 6C 20 32 30 30 38 2E 20 47 65 72 6E 65 20 6F 66 66 65 72 69 65 72 65 6E 20 77 69 72 20 49 68 6E 65 6E 20 67 65 6D 5C 27 65 34 73 73 20 75 6E 73 65 72 65 6E 20 61 6C 6C 67 65 6D 65 69 6E 65 6E 20 47 65 73 63 68 5C 27 65 34 66 74 73 62 65 64 69 6E 67 75 6E 67 65 6E 20 64 69 65 20 67 65 77 5C 27 66 63 6E 73 63 68 74 65 6E 20 50 72 6F 64 75 6B 74 65 20 75 6E 64 20 44 69 65 6E 73 74 6C 65 69 73 74 75 6E 67 65 6E 20 77 69 65 20 66 6F 6C 67 74 3A 5C 63 66 30 5C 66 31 5C 66 73 32 30 0D 0A 5C 70 61 72 20 5C 66 73 32 30 5C 6C 61 6E 67 31 30 33 31 0D 0A 5C 70 61 72 20 7D 0D 0A
(BLOB in the Database)
Binary RTF
If you have a binary data inside of your DataColumn instead of serialized in string Rtf text, than you should first of all convert it into String and then pass to the StiRichText component.
These actions should be done in GetValueEvent of the RichText component:
Please see the following topic on the similar question:
http://forum.stimulsoft.com/Default.aspx?g=posts&t=990
Thank you.
These actions should be done in GetValueEvent of the RichText component:
Code: Select all
// Rtf text packing
e.Value = System.Xml.XmlConvert.EncodeName(StiRichText.PackRtf(here is the text in rtf format as string));
http://forum.stimulsoft.com/Default.aspx?g=posts&t=990
Thank you.
Binary RTF
alright, thought so... so just in case there are more questions like this, it might be a feature to add binaryrtf-support just by setting the appropriate property. i've seen it a couple of times in conjunction with the ms access rtfcontrol.
thanks for your time.
thanks for your time.
Binary RTF
Hello,
We can add support of rtf binary format, but we need specification or any other document which describe this format. We can't find something.
Thank you.
We can add support of rtf binary format, but we need specification or any other document which describe this format. We can't find something.
Thank you.