Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Printing size of text

Hello,

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)

Greetings

Oliver

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question