Results 1 to 4 of 4

Thread: Printing A file(*.txt)

  1. #1

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    Printing A file(*.txt)

    Thers some guy in electrical dept. (doesn speak english well)
    he swears (or it sounds like it) that from VB you can
    print an external text file.. to a port. i think he means the port
    which the printer is attached to. lpt1 or something.
    He says hes having problems, because the customers printer will
    be a usb printer. ???

    Is this possible ... And if it is HOW?

    Thnks in advance

    Seahag

  2. #2
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    I'm not really sure what you're getting at here. VB will use the default system printer unless you use something like the common dialog control to change the printer or use API's or something.

    I'm assuming you're opening the text file somehow. If not, then that's probably the easiest way to go even if you don't display it. You can just read and print.

  3. #3

    Thread Starter
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Ya.. thats what i thougt.. i was just wondering if there
    is a way to print actual files... without opening
    them..

    Thought**
    if you right click on a textfile. you have the option to print it.
    If windows has that functionality, y cant I do it through VB?

    Seahag

  4. #4
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    You probably can do it, but it would have to be through API's I think. I'm not sure. I've never needed to do it.

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