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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaushalgajjar
    New Member
    • Oct 2007
    • 7

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

    Hi,

    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.




    Regards,
    Kaushal
  • CyberSoftHari
    Recognized Expert Contributor
    • Sep 2007
    • 488

    #2
    Did you try font with underline?

    Comment

    • kaushalgajjar
      New Member
      • Oct 2007
      • 7

      #3
      Originally posted by CyberSoftHari
      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

      Comment

      • CyberSoftHari
        Recognized Expert Contributor
        • Sep 2007
        • 488

        #4
        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.

        Comment

        • QVeen72
          Recognized Expert Top Contributor
          • Oct 2006
          • 1445

          #5
          Hi,

          Google for "VB6 RichTextBox Print"

          Browse the first M$ link..

          Regards
          Veena

          Comment

          Working...