String Builder - not appended

K

Karuppasamy

Hi



I am using a variable of StringBuilder to form a string.

After appending a string of value like this

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0
Verdana;}}
\viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par
}



This value is appended to that string builder.

Whatever appended after this value, not getting appended to the
StringBuilder.



How to solve this problem?



Thanks and Regards

Karuppasamy Natarajan
 
H

Herfried K. Wagner [MVP]

Hello,

Karuppasamy said:
I am using a variable of StringBuilder to form a string.

After appending a string of value like this

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0
Verdana;}}
\viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par
}



This value is appended to that string builder.

Whatever appended after this value, not getting appended to the
StringBuilder.

Please post some code. Do not x-post your questions to as many ngs.
 
W

William Ryan

It's impossible to tell from your post but I'm guessing that you are using
RTF here and are probably forgetting a \ or other character somewhere. So
it may in fact be appending, but if you try to view it anywhere, it won't
show b/c it's not in proper RTF format.

How are you determining that it's not appending? By looking at
StringBuilder.ToString() or by taking the appended value and setting a RTF
control's rtf property to it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top