Results 1 to 5 of 5

Thread: Printing from a text box

  1. #1
    Guest
    Say i have a text box with text it in. Next to it i have a command button that says "print" what i want to do is when you click the button, it prints the information in the text box. How would i do that?

    -Steve

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    This will do that:
    Code:
    Printer.Print Text1.Text 'print it
    Printer.EndDoc 'Tell the printer that the end is reached

  3. #3
    Guest

    Talking

    Wow thats it. thanks for the code.

    -Steve

  4. #4
    Guest
    If you want, you can set the position of the text with the CurrentX and CurrentY properties.

  5. #5
    Lively Member
    Join Date
    May 2000
    Location
    Atlanta, GA
    Posts
    80

    Question Printer.Print

    If I use similar code to combine several textboxes into one String and then print that string... How can I force the string to WordWrap on the output?

    For example:
    ------------------------------------------------------
    Dim strTest as String
    strTest = Text1 & Text2 & Text3 & Text4 'Etc...

    Printer.Print strTest
    Printer.EndDoc
    ------------------------------------------------------

    This way... The output is on one line which prints off the right side of the page. Can I WordWrap?

    Thanks!
    Kevin
    Kevin

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