It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Obtain textwidth value of bolded font

Moderator: dafunkymunky

Obtain textwidth value of bolded font

Postby HeavyMetal on Fri Aug 03, 2007 3:17 pm

I do not seem to be able to get an accurate value for textwidth when the font is bolded. The textwidth value returns the same whether bolded or not. When printing columns of data using .currentX to position the next print location I am trying to pad space to compensate when center or right justified, which works, but bold face is not positioned correctly.
I am using VB 6.0. Thanks for any help.

HeavyMetal
HeavyMetal
 
Posts: 4
Joined: Fri Aug 03, 2007 3:06 pm
Location: Toledo, Ohio

RESOLVED

Postby HeavyMetal on Tue Aug 07, 2007 6:08 pm

I have to use Printer.fontbold=true and printer.textwidth(label1) to get proper values.

HeavyMetal
HeavyMetal
 
Posts: 4
Joined: Fri Aug 03, 2007 3:06 pm
Location: Toledo, Ohio


Who is online

Users browsing this forum: No registered users and 1 guest