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

Re: String Builder - not appended by froeschlin

froeschlin
Mon Sep 08 02:58:19 CDT 2003

Karuppasamy wrote:

> I am using a variable of StringBuilder to form a string.
>
> {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0
> Verdana;}}
> \viewkind4\uc1\pard\f0\fs17 saesae \b esrdsr esrdsr\i refetwe\b0\i0\par
> }

If you use C#, try escaping the backslash (use "\\" to represent a "\").

Please avoid crossposting.


Re: String Builder - not appended by Herfried

Herfried
Mon Sep 08 05:45:52 CDT 2003

Hello,

"Karuppasamy" <Karuppasamy.Natarajan@isoftplc.com> schrieb:
> 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.

--
Herfried K. Wagner
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet



Re: String Builder - not appended by William

William
Mon Sep 08 08:07:25 CDT 2003

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?
"Karuppasamy" <Karuppasamy.Natarajan@isoftplc.com> wrote in message
news:%23mszynddDHA.3240@TK2MSFTNGP11.phx.gbl...
> 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
>
>
>
>