Results 1 to 4 of 4

Thread: Receipt Printer

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 1999
    Location
    Reno, NV
    Posts
    57
    Hello
    I am finishing a POS app. I am using a Star sp200
    receipt ptint (not default printer). Has anyone ever
    written to a printer like this. I know that I've written
    to a Parallel port printer before(default printer). I
    just can't remember how I did it (Age Problem)?

    Any help (sample code) would be very COOL!

    Thank's
    William

  2. #2
    Addicted Member
    Join Date
    Feb 2000
    Posts
    135
    Hi,
    Hows ya Point of Sale program? Wanted to ask if you know how to print an image to a receipt printer without performing a page feed afterwards? Can i check out your POS System?

  3. #3
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    350

    Printer object

    William,

    You probably want the printer object, and you'll have to set it to be the Star by looping thru all printers till it finds the right one. Assuming the Star is installed in Windows, and is called 'Star', here's how you set it:

    VB Code:
    1. Dim aPrinter As Printer
    2. For Each aPrinter In Printers
    3.   Debug.Print aPrinter.DeviceName
    4.   If aPrinter.DeviceName = "Star" Then
    5.     Debug.Print "Found it!"
    6.     Set Printer = aPrinter
    7.     Exit For
    8.   End If
    9. Next
    .

  4. #4
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    And if it's serially connected, be sure to include the MSComm control in your form.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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