开发者

rich text: changing the bullet character?

开发者 https://www.devze.com 2023-03-03 04:39 出处:网络
because of problems with the bullets in c开发者_开发百科rystal report (they simply dont appear), i want to change the bullet sign to something similiar like \' * \' or \'●\'.

because of problems with the bullets in c开发者_开发百科rystal report (they simply dont appear), i want to change the bullet sign to something similiar like ' * ' or '●'.

the rtf specification (http://www.biblioscape.com/rtf15_spec.htm#Heading33) says for \pnlvlblt

Bulleted paragraph (corresponds to level 11). The actual character used for the bullet is stored in the \pntxtb group.

and for \pntxtb

'{' \pntxtb #PCDATA'}'

#PCDATA means text without control words. 

anyone here knows how to achieve this?


To store bulleted text in MySQL and show in crystal report with C# -set data type as blob in MySQL table -to save, use rich textbox in c# and in sql statement, set the parameter's data type as blob

cmd.Parameters.Add(new MySqlParameter("@Description", MySqlDbType.Blob));

-to retrieve, I use parameter field for crystal report and change the string got from select statement to unicode

byte[] myByte = (byte[])dtResult.Rows[0]["rdescription"];
string res = Encoding.UTF8.GetString(myByte, 0, myByte.Length);

-Set Text Interpretation to RTF Text for that parameter field.

It works for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消