Results 1 to 9 of 9

Thread: Printing Selected Text

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79

    Printing Selected Text

    How do you print the selected text (or any text in a rich Text feild).



  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    Watch and copy examples of Source Code in VB.NET
    [email protected]
    http://www.geocities.com/yulyos4vbnet

    Have a nice day

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    I have. But for the most part none of it worked.



  4. #4
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Printing from a RichTextBox

    Hi,

    Printing from a RichTextBox

    Look at the attached file,
    the program print all the text from the RichTextBox

    Have a nice day
    Attached Files Attached Files

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    I know, I keep getting this though:

    Warning 1
    Error HRESULT E_FAIL has been returned from a call to a COM component. 0 -1

    Error 2
    Type 'RichTextBoxEx' is not defined. C:\Documents and Settings\Marc Dobek\Desktop\P_rtbexvb\Form1.vb 34 40


    Error 3
    Type 'RichTextBoxEx' is not defined. C:\Documents and Settings\Marc Dobek\Desktop\P_rtbexvb\Form1.vb 39 32

    Warning 4
    The referenced component 'rtbexvb' could not be found.



  6. #6
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    You have to add a reference to the component 'rtbexvb.dll'
    it is in the bin path.

    Or add it to your toolbox.

    I have attached file 'rtbexvb.dll'

    Have a nice day
    Attached Files Attached Files

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    Afew of your commands still counldnt be found. ALso, when I got it to work, it spooled about 500 pages of nothing.....



  8. #8
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224
    Hi,

    I can't help you any more, the example i sent to you it's working ok in my computer.

    Have a nice day

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Location
    Can't say sorry :)
    Posts
    79
    Ok, with that: Any one else know of any tutorials that would contain this?



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