Sigal Laniado
November 14th, 1999, 05:00 AM
How can i evaluated text width?
|
Click to See Complete Forum and Search --> : How to calculate Text Width? Sigal Laniado November 14th, 1999, 05:00 AM How can i evaluated text width? November 14th, 1999, 07:29 AM Use Len("YourText") Vlad Sigal Laniado November 14th, 1999, 08:43 AM I don't need the length of the string, i need the lengt of the string in pixels or twips santulan November 14th, 1999, 11:12 PM Hi.... There are some function called textwidth and textheight. But before you use them, ypu have to tell computer about the font and font size so that textwidth and textheight could be calculated. Given below is a small example of using them. ... ... Printer.FontBold = true Printer.FontSize = 16 Msg = "We all are computer professioanals let us help each other." textWidth = Printer.TextWidth(Msg) ... ... ... textwidth and textheight work with printer, form and picture object. I hope this answer the query. Santulan codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |