mdi text editor printing color text
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
Re: mdi text editor printing color text
Help with what. Could you explain what exactly you are trying to do. There is no question mentioned in your post.
Also please use code tags when you are posting code here in forums.
Re: mdi text editor printing color text
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.
Re: mdi text editor printing color text
That is in BEGIN PRINT, not PREVIEW, which is why you don't see it.
Re: mdi text editor printing color text
Quote:
Originally Posted by
dglienna
That is in BEGIN PRINT, not PREVIEW, which is why you don't see it.
surly i would not have the same code in printpreview as i would in beginprint?
Re: mdi text editor printing color text
Just use the same class on two devices
1 Attachment(s)
Re: mdi text editor printing color text
Quote:
Originally Posted by
dglienna
Just use the same class on two devices
sorry im new to all of this!!
please take alook at my editor and you will see what i mean
Re: mdi text editor printing color text
just wondering how anyone is getting on with my issue. ive noticed that 8 people have downloaded my on going project, i really hope someone can help
Re: mdi text editor printing color text