Printing...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Josep Blanch

    #1

    Printing...

    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_Cli ck(....

    If (PrintDialog.Sh owDialog() = DialogResult.Ok ) Then

    DocumentToPrint .Print

    End If

    End Sub

    .....

    Private Sub PrtDocument_Pri ntPage(....

    ev.Graphics.Dra wString(TextBox 1.Text, TextBox1.Font.B rushes.Black, 0, 0)

    End Sub



Working...