Results 1 to 5 of 5

Thread: RichTexBox Printing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    RichTexBox Printing

    Hi,

    Last time I asked maybe nobody understood my question well and I get not this answer I needed. Sorry for my English.

    I'll try again:

    I have six rich text boxes.
    I all of them are text and ole objects.

    .PrintRTF prints only one rich text box.
    How to combine them all and then print.
    I'm making testing program for school.
    In firs rich text box are question, in other - answers.
    In the page must look like this:

    Question Nr.1
    Text.....Picture....Ole object and other (this is content of richtextbox1)
    Answers:
    richtextbox2 content
    richtextbox3 content
    richtextbox4 content
    richtextbox5 content
    richtextbox6 content
    Question Nr.2
    ...
    ...
    ...

    How to make it?

    Please help me.

  2. #2
    rickm
    Guest

    Re: RichTexBox Printing

    Originally posted by Norkis
    Hi,

    Last time I asked maybe nobody understood my question well and I get not this answer I needed. Sorry for my English.

    I'll try again:

    I have six rich text boxes.
    I all of them are text and ole objects.

    .PrintRTF prints only one rich text box.
    How to combine them all and then print.
    I'm making testing program for school.
    In firs rich text box are question, in other - answers.
    In the page must look like this:

    Question Nr.1
    Text.....Picture....Ole object and other (this is content of richtextbox1)
    Answers:
    richtextbox2 content
    richtextbox3 content
    richtextbox4 content
    richtextbox5 content
    richtextbox6 content
    Question Nr.2
    ...
    ...
    ...

    How to make it?

    Please help me.
    Create Hidden richtextbox7 somewhere on form.

    Code:
    richtextbox7.text = richtextbox1.text & vbcrlf & richtextbox2.text & _
                      vbcrlf & richtextbox3.text & vbcrlf _ 
                      & richtextbox4.text & vbcrlf & richtextbox5.text _ 
                      & vbcrlf & richtextbox6.text
    
    richtextbox7.printRTF

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309
    this works only then in richttextbox'es are only text, but what to do then there are not only the plain text, but and ole objects ?

  4. #4
    rickm
    Guest
    Originally posted by Norkis
    this works only then in richttextbox'es are only text, but what to do then there are not only the plain text, but and ole objects ?
    Try to use .TextRTF everywhere where it says .Text

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309
    It not works...

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