Results 1 to 2 of 2

Thread: Printer Font

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Posts
    434

    Printer Font

    Hello

    I have a form with a Rich Text Box. I have text in the box and the layout needs to stay as it is in the box when it prints. It looks like the font gets changed from the RT box to the printer so that the layout is not the same when it's printed as it is in the RT box. The RT box uses Courier New font. How do I get the printer to use the same font. Or is there something else going on that makes the printed look like a completely different font than the screen?

    I tried the following but got an error message: invalid use of property. On debug it highlights Name.

    Code:
    Private Sub cmdPrint_Click()
    
    Printer.Font.Name ("Courier New")
    
    Printer.Print RichTextBox1.Text
    
    Printer.EndDoc
    
    End Sub
    Thanks

    David

  2. #2
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668
    You know rich text boxes come with a built in print method right?
    If wishes were fishes we'd all cast nets.

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