hi all im trying to addapt my printing code so it will print my text what ever i have selected it to be in the text editor. here is the code i have at the moment can someone help me please.
Private Sub PrintDocument1_BeginPrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles mypdoc.BeginPrint
str = CType(Me.ActiveMdiChild, frmSplit).RTB.Text 'If this was a single text editor this line would read (str = mytext.text)
f = CType(Me.ActiveMdiChild, frmSplit).Font
b = New SolidBrush(Me.ActiveMdiChild.ForeColor)
strformat = New StringFormat()
strformat.Trimming = StringTrimming.Word
End Sub
i have a mdi text editor with as many child forms as i like. i have a function that i can change the colour and font of my text in any child form i want.
this is my problem.
when i goto print preview the text is black and normal size and not what i changed it to in the child form.
the code in the above post i made is not working correctly and i need help in making it right.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.