Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Font

0 views
Skip to first unread message

Sunil Thapliyal

unread,
Sep 19, 2002, 11:26:30 AM9/19/02
to
I am invoking a word doc from vb.net and

trying to set the font of the application as 11.. i am doing as follows.

objWdDoc.Characters.First.Font.Size = 11

it does not works

is there a way to select the whole document and then set the font.

Dave Lett

unread,
Sep 19, 2002, 11:35:40 AM9/19/02
to
Hi Sunil,

It depends on what you're trying to do. Sometimes when you insert material
after a paragraph, Word automatically resets the style (and therefore the
font). If I were you and I was trying to make sure that the end result had a
font size of 11, then at the very end of my routine, I'd use

objWdDoc.Content.Font.Size = 11

HTH

"Sunil Thapliyal" <suni...@hotmail.com> wrote in message
news:us5IGD$XCHA.1860@tkmsftngp08...

Sunil Thapliyal

unread,
Sep 19, 2002, 11:46:56 AM9/19/02
to
Thanks
It worked
Sunil
"Dave Lett" <dl...@NOSPAMmenusoft.com> wrote in message
news:#1b53F$XCHA.2096@tkmsftngp11...
0 new messages