1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Print text file directly to default printer

Discussion in 'Visual Basic ( VB )' started by terrylau, Jul 8, 2009.

  1. terrylau

    terrylau New Member

    Joined:
    Jul 2, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Hi, I've an application where I've got a text box that will display the contents of any text file that I've chosen.

    (1) How do I print the text file that I've chosen directly to the default printer without the printer setup box popping up?

    (2) How do I also include the option for the user to choose other printers than the default printer if they want to print the file to other printers?

    Hope you guys can explain step by step if possible to me as still new to VB and been reading around on the Print Command but all the other threads seems quite complicated to me.

    Thanks in advance.
     
  2. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    I will post an article about the same today ;)
     
  3. terrylau

    terrylau New Member

    Joined:
    Jul 2, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Great, thanks!
     
  4. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    :welcome:
     
  5. hotnspicy

    hotnspicy New Member

    Joined:
    Jul 6, 2009
    Messages:
    45
    Likes Received:
    5
    Trophy Points:
    0
    Hi, thanks, I will use the same system into my current year project.
     
  6. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Sure, My pleasure ;)
     
  7. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Writing an article for you buddy, I will submit it soon ;)
     
  8. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Submitted, please check once it got appvoed.
     
  9. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
  10. terrylau

    terrylau New Member

    Joined:
    Jul 2, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Thanks again ... appreciate it :)
     

Share This Page