Results 1 to 5 of 5

Thread: Printing direct to LPT1

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Post

    I need to print direct to LPT1 from VB for label printing - Help I need to send control codes and data

  2. #2
    Guest

    Post

    You can use the Printer type to print to the default printer.

    Code:
    Printer.Print "Greetings fellow vb programmers"
    Printer.EndDoc
    -Kayoca Mortation

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Post

    That's fine for normal text but it also prints all the configuration settings - the control characters,everything!
    I managed to do this with com1 using "Open "COM2" For Output As #1" but cannot get this to work using lpt1 - any ideas

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    16

    Post

    Consider this one dead - I stupidly omitted the quotes around "lpt1" - doh

    thanks for your help though

  5. #5

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