Results 1 to 5 of 5

Thread: Print from a Rich Text Box?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    I don't know how to make my program print from a RichTextBox. Please help if you can.

    RichTextBox1
    cmdPrint
    mnuFilePrint

    Thanks.
    If you think education is expensive, try ignorance.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325


    Code:
      '' print using the default printer
      Printer.Print Me.RichTextBox1.Text
    -Shickadance

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    Thank you. But I get a runtime error 482 when I try to run it.
    If you think education is expensive, try ignorance.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    Do you have a default printer setup?
    -Shickadance

  5. #5
    Guest
    Use the SelPrint method.

    Code:
    RichTextBox1.SelPrint (Printer.hDC)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width