
Formatting a text box for printing(please help!!!)
Quote:
>I am working on a prog that requires me to format the output to the printer
>when the text is taken from a text box. If i just say--- Printer.print txtNotes
>it just prints one line and doesnt print the whole text box. I was just curious
>if there is some sort of word wrap type function or some code structure to
>print more than just one line. Any help would be great.
Hi Matterhorn. Not sure what causes your prob.
In VB6, SP5, Win98 I ran:-
Private Sub Form_Load()
For i = 1 To 5
Text1.Text = Text1.Text & vbCrLf & i
Next i
Printer.Print Text1.Text
End Sub
The printed o/p included all of Text1's text :-
Text1
1
2
3
4
5
Apologies for a non-answer to your question :-)
Regards.
--
Martin Trump