mtaylor314
Member
VB.NET:
Public Sub PrintFormatText(ByVal PrintText As String, ByVal Handle As Long, ByVal cpl As Byte)
Dim ts As String
Dim ln As Integer
Dim vr As Array
Dim i As Integer
vr = Split(PrintText, vbCrLf)
For i = LBound(vr) To UBound(vr)
ts = vr(i)
Do
Print(Handle, Left(ts, cpl))
ln = Len(ts)
If ln <= cpl Then
Exit Do
End If
ts = Right$(ts, ln - cpl)
Loop
Next i
End Sub
Last edited: