Printing from RichTextBox

  • 18 years ago

    I noticed that when I print, I get a Graphics object.


    What the .... am I supposed to do with a Graphics object
    when I want to print a RichTextBox?


    Can anyone fill me in?  'Cause I'm drawing a blank.


    Thanks,
    - Mike

  • 18 years ago

    how do you get the Graphics object? but I suggest you look at the PrintDocument class....


    maybe also look at http://www.codeguru.com/cs_controls/RichTextEx.html

  • 18 years ago

    When my book shows printing, it uses a Graphics object from
    the PrintPageEventArgs in the PrintPage event.


    Are there any other ways to print other than API (the link
    you posted) or a Graphics object?



    Many thanks,
    - Mike


Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson