Results 1 to 4 of 4

Thread: Text to Notepad

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    249

    Unhappy Text to Notepad

    yes, i want to know how i can take textbox text from a form and put it all into notepad so it is ready to print or even open in a seperate form ready to print, either one will work.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Text to Notepad

    Do you want to print the textbox contents or save the contents
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    249

    Re: Text to Notepad

    i want to beable to print them...

  4. #4
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Text to Notepad

    Lookup the documentation of Printer object and Printers Collection in MSDN.
    The easiest way to print in VB is:
    VB Code:
    1. Printer.Print Text1.Text
    2.     Printer.EndDoc

    But, you may want your printouts to be neatly formatted. Do a google search for "VB6 Printing". You'll get many good tutorials.

    If you want advanced WYSIWYG formatting, like MS-Word, you'll need to use the RichTextBox. Do a google search for "RichTextBox Printing"
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


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