Printing size of text
I need the printing size (the width the text is printed) of a text because I want to set the font size accordingly.
Here's how it's done in Visual Basic:
Dim instance As Printer
Dim text As String
Dim returnValue As Single
returnValue = instance.TextWidth(text)