Results 1 to 3 of 3

Thread: Rich text box print output missing lines

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Posts
    434

    Rich text box print output missing lines

    Hello

    I have a rich text box that I print the contents of using the following code
    Code:
    Private Sub cmdPrint_Click()
    
    Printer.Font.Name = "Courier New"
    Printer.Font.Size = 6
    Printer.Print RichTextBox1.Text
    
    Printer.EndDoc
    
    End Sub
    The problem that I'm having is that randonly there is a line that is blank. The text that should be on that line is just gone with a blank line where it should be.
    The line in question is a line of dashes that I use as a separator. There is one of these every 7th line. The missing lines are not at a page break and appear to be competely random. Sometimes there will be none for several pages then up it pops.

    Any ideas?

    Thanks

    David

  2. #2
    Hyperactive Member Rocketdawg's Avatar
    Join Date
    Feb 2003
    Location
    Back in the doghouse
    Posts
    294

    Question

    Is the text created in the box or is a file opened and loaded
    into the rtb?
    Sometimes if a document is written (and rewritten a lot), the formatting can get goofed up on print, even though it looks fine on screen. I had that happen a couple of times in MS Publisher.
    Just a thought

  3. #3
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    try printing the rich text instead of the raw text and see if the missing lines are there. If it is a screwup in the formatting, that should help you isolate the cause.

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