thanks john
your're right again the image was being stretched, this is what happens the code is basically the same as provided by MS for printing rtf text
i want to print the contents of the richtextbox to a jpeg using this method and not the drawstring method as i will lose text formatting...
hi john
thanks for you en genius reply...(really it was!)
my next question?
when u use the handle with the printeventargs you can get very clear
quality sent your printer but quality is very bad for a image??
hi ian
my apologies
the code saves a richtextbox controls data to a bitmap
the problem is it just gives me a black bitmap
see attached, beet at this 2 days, no luck??
Please help!!
Public Sub ToImage(ByVal cntrl As RichTextBox, ByVal filename As String, ByVal inputformat As Imaging.PixelFormat, ByVal outputformat As Imaging.ImageFormat)
Dim charfrom As Integer, charto As Integer
' Mark starting and ending character
Dim cRange As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.