-
I am trying to print out multiple items from a Textbox that has the muliline property = true. I also have vertical scroll bars in case the user has lots of stuff to enter.
The Problem is when this textbox is asked to print its contents, it will place the first item on the correct place on the margin. The problem is the second, third, fourth.... items get pushed all the way to the left side of the page. Here is my code:
Code:
Dim sI as String
If txtStuff.Text <> "" Then
sI = txtStuff.Text
Printer.CurrentX = HorizontalMargin + 0.5
Printer.Print sI
End If
The results are (with more than one item):
Code:
Results:
Blue
Black
Red
Blue is correct, but Black and Red are wrong. Thank You for the help.
-
Printing with margins is never easy in VB.
Check out this thread