Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have the following:

 

Case 12 'print

PrintDialog1.Document = ThePrintDocument

Dim strText As String = Me.txtComments.Text

myReader = New StringReader(strText)

If PrintDialog1.ShowDialog() = DialogResult.OK Then

Me.ThePrintDocument.Print()

End If

 

I need a sub routine for printing different fonts (sizes), underline, bold.

 

Private Sub ThePrintDocument_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles ThePrintDocument.PrintPage

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...