For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > July 2006 > Printing...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Printing...
Josep Blanch

2006-07-03, 8:01 am

Hello.

I would like to print in paper the content of a string (defined in the
property TextBox.Text) but I want that it show the line jump (with VbCrLf).
When I make the following code, I can't see the "line jump", the printer
prints all the text in continous . Why?

PD: Example of the code

Private Sub ButtonPrint_Click(....

If (PrintDialog.ShowDialog() = DialogResult.Ok) Then

DocumentToPrint.Print

End If

End Sub

.....

Private Sub PrtDocument_PrintPage(....

ev.Graphics.DrawString(TextBox1.Text, TextBox1.Font.Brushes.Black, 0, 0)

End Sub


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com