String Builder - not appended

  • Thread starter Thread starter Karuppasamy
  • Start date Start date
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
 
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.
 
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?
 
Back
Top