Results 1 to 3 of 3

Thread: VB6 and receipt Printers

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2008
    Posts
    18

    Question VB6 and receipt Printers

    I got my program all written and working great, but forgot one small issue . The program uses a receipt printer to print out the data, but I don't know to have the printer cut the paper after it is done printing! I am using the Star 600 printer connected through USB with all the necessary drivers installed. From what I got from google I have to send it the command to cut the paper, but I have no clue how to do that from VB6. The book that came with the printer said the command to cut the paper is "ESC d", but how I get that to the printer I don't know . Any help would be greatly appreciated!

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: VB6 and receipt Printers

    Don't know if this will work, have you tried printing Chr$(vbKeyEscape) & "d" ? If it fails, try adding a space before the d: " d"
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: VB6 and receipt Printers

    Escape is a CHR(27)

    Print Chr(27);"d";

    should do it...

    We use a much more complex method to talk to cash drawers and receipt printers that involve a series of DLL's that talk to these devices. Show some of your code please.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

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