Home All Groups Group Topic Archive Search About

Formatting text in stringbuilder

Author
14 Jul 2006 9:51 AM
Judy
Hi all,

I'm writing the result, returned by an sql query, to stringbuilder. But
first i want to format the text. I want to make the column heading
bold. Because I'm passing the stringbuilder to Excel using response
object and while passing, i can't set anything, right? Please can
anyone help me with this?

Thanks and regards,
Judy

Author
14 Jul 2006 10:13 AM
Kevin Spencer
A string can not be bold. Only a font can be bold. A string is an array of
characters. It has no font.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.


Show quote
"Judy" <judyaj***@yahoo.com> wrote in message
news:1152870680.165532.209350@p79g2000cwp.googlegroups.com...
> Hi all,
>
> I'm writing the result, returned by an sql query, to stringbuilder. But
> first i want to format the text. I want to make the column heading
> bold. Because I'm passing the stringbuilder to Excel using response
> object and while passing, i can't set anything, right? Please can
> anyone help me with this?
>
> Thanks and regards,
> Judy
>

AddThis Social Bookmark Button