programmatically changing font size changes it to something other than what i want

R

Richy

Hi,

I have a VB application that controls Word via the Microsoft Word 11.0
Object Libary. It works without problem on all the computers in our
office (well over 40 of them) but on just one computer I have found
that, when I programmatically set the font to Courier New size 10.5,
when I query the font immediately after the font size is now 10.19

I then tried size 9.5 and after querying it the font size says 9.51

Does anybody have any idea why the font size is not being set to the
required size? This appears to be interfering with the formatting. Like
I said, this works on every other computer.

Thanks,

Richard
 
G

Guest

That's very weird because Word only sets to ½-point increments. It must be
an error in the query.
 
R

Richy

Hi,

I removed that post shortly after making it as I found out it wasn't
happening in Word, but within my VB app that talks to Word. I made a
post in a VB group and have been given a few ideas to check out ("DPI
setting" ComboBox (in the Display frame).

Thanks,

Richy
 
G

Guest

Richy

Glad you're on the track.

BTW, I can confirm that it isn't possible to recall messages from these NGs.

Terry


Hi,

I removed that post shortly after making it as I found out it wasn't
happening in Word, but within my VB app that talks to Word. I made a
post in a VB group and have been given a few ideas to check out ("DPI
setting" ComboBox (in the Display frame).

Thanks,

Richy
 
Top