Re: printer question
- Posted by don cole <doncole at pacbell.net> Jun 01, 2006
- 619 views
George Walters wrote: > > > Using win32lib 59.1 I'm trying to find how many chars will fit on a printer > line with a specific font size. My question is how many pixels are between > each character. I've been using this > > fontSize = getFontSize( Printer ) > printerSize = getExtent( Printer ) > and > charsPerLine = floor(printerSize[1]/fontSize[1]) > > But I'm guessing that I'm missing the pixels between each character. This > above > method says I have 85 chars on a line when there is only 80. > > Anyone know the answer? Try getTextExtent(Printer," ") Don Cole Bonds > Ruth. Giants STILL in last place Hmmmmmmmm!