Private Sub Command1_Click()
Dim var1 As Variant
Dim str1 As String
str1 = Text1.Text
var1 = Split(str1, Chr(32))
Dim int1 As Integer, ind1 As Boolean
str1 = ""
For int1 = 0 To UBound(var1)
If Printer.ScaleWidth >= Printer.TextWidth(str1 & var1(int1) & " ") Then
str1 = str1 & var1(int1) & " "
Else
ind1 = True
End If
If ind1 Then
Printer.Print str1
str1 = var1(int1) & " "
ind1 = False
End If
Next int1
Printer.EndDoc
End Sub