Results 1 to 3 of 3

Thread: print me please!!!

  1. #1

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234

    Angry print me please!!!

    hi,
    i need to print to a printer directly without using printer driver. i know there are lots of posts here which can help but guess not enuf to help me.
    when i say this nothing happens:
    VB Code:
    1. Open "lpt1" For Output As #1
    2. Print #1, "Test"
    3. Close #1

    why is this so?

    i m using epl2 programming is there some1 who has used this before.

    please please please help me with this epl2 programming.

    Nihar.

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    only suggestion I have is using LPT1: instead of just LPT1

    sample

    VB Code:
    1. Dim nPrinter As Long
    2. nPrinter = FreeFile
    3.  
    4. Open "LPT1:" For Output As nPrinter
    5. Print #nPrinter, "TEST TEST"
    6. Print #nPrinter, Chr(13) & Chr(10)
    7. Print #nPrinter, "TEST LINE NO 2"
    8. Close nPrinter

    worth trying
    -= a peet post =-

  3. #3

    Thread Starter
    Addicted Member nihar's Avatar
    Join Date
    Jan 2002
    Location
    somewhere between home and office
    Posts
    234
    Tried it mate

    doesnt work..

    do i need to install any drivers to print? say a generic text only printer driver?

    my guess is that since we are trying to send it directly to the printer port it shouldnt be required.

    if some1 has worked on epl2 programming he should have the experience which can be shared. please please please help me


    regards,
    Nihar.

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