|
-
Feb 9th, 2003, 02:34 PM
#1
Thread Starter
Hyperactive Member
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
-
Feb 9th, 2003, 07:20 PM
#2
Hyperactive Member
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
-
Feb 9th, 2003, 07:26 PM
#3
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|