By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,109 Members | 993 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,109 IT Pros & Developers. It's quick & easy.

How to print a RichTextBox or Any thing with a horizontal lines?

P: 7

I am into a trouble since 1 week and unable to find the solution from any community or site. I have created a small program that i want to print along with horizontal lines (like a notebook lined paper) . I have each line with 3 mixed fonts randomly generated so i have used RichTextBox control. everything is working fine.

Now i want to know how do i add a line into the RichTextBox or How do i Print along with Lines. the purpose is to take a printout along with lines.

If it is not possible what should i do to take print out along with lines?

I have tried to implement PDF file and tried to process with it but i was unable.

Jun 10 '08 #1
Share this Question
Share on Google+
4 Replies

Expert 100+
P: 487
Did you try font with underline?
Jun 10 '08 #2

P: 7
Did you try font with underline?
Yes but underline wont work because of some reason,

1 Requirement is to print whole page with lines, underline would only come upto the end of text, not on the full page.

2 Underline wont work when fonts are differ like i have first word in Bold and then all in italic the italic font's underline the underline shows up and down not streight
Jun 11 '08 #3

Expert 100+
P: 487
Then the only way is to print the content in lined paper. Consider you are going to print 5 to 6 lines of text content and suppose to print more than 25 lines in a paper, in this case after printed 5 to 6 text line you have to wait for print another 20 lines to complete your printout. Whatever format you need should be available in the paper then you have to start printing the content only. So printing empty lines is not good way of taking printout.
Jun 11 '08 #4

Expert 100+
P: 1,445

Google for "VB6 RichTextBox Print"

Browse the first M$ link..

Jun 11 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.