S
Simon Whale
Hello,
not sure if this is best started here but here goes;
I have a richtextbox on a form, I can bold text, Italic and underline
without a problem. I can print the text from the Richtextbox control to
either the print or to file via a pdf progam, but I keep loosing the format
of the bold, underline and italic characters.
For printing i am using this example
http://msdn.microsoft.com/en-us/library/ms996492(printer).aspx
to get the bold on screen i am using
Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ToolStripButton1.Click
Me.RichTextBox1.SelectionStart =
Me.RichTextBox1.Find(Me.RichTextBox1.SelectedText)
Dim bfont As New System.Drawing.Font(RichTextBox1.SelectionFont,
FontStyle.Bold)
RichTextBox1.SelectionFont = bfont
bfont = Nothing
End Sub
Any help that you can give me, would be of great help
Thanks
Simon
not sure if this is best started here but here goes;
I have a richtextbox on a form, I can bold text, Italic and underline
without a problem. I can print the text from the Richtextbox control to
either the print or to file via a pdf progam, but I keep loosing the format
of the bold, underline and italic characters.
For printing i am using this example
http://msdn.microsoft.com/en-us/library/ms996492(printer).aspx
to get the bold on screen i am using
Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ToolStripButton1.Click
Me.RichTextBox1.SelectionStart =
Me.RichTextBox1.Find(Me.RichTextBox1.SelectedText)
Dim bfont As New System.Drawing.Font(RichTextBox1.SelectionFont,
FontStyle.Bold)
RichTextBox1.SelectionFont = bfont
bfont = Nothing
End Sub
Any help that you can give me, would be of great help
Thanks
Simon