Results 1 to 8 of 8

Thread: esc/pos command

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    3

    esc/pos command

    i am writing a program using visual basic 6 to print receipt to Epson compatible POS Printer. For printing Text is ok, but i wanted to include image into the receipt, but i don't know how to do so.

    For Text printing, I use the ESC/POS command something like

    Open "LPT1:" For Output As #1

    Print #1, Chr$(27) + "@" ' initial printer
    Print #1, "my code here"
    Print #1, Chr$(27); "m" ' cut receipt
    Close #1


    i saw the epson pos printer manual, it say use the ESC/POS Command like

    GS ( L - define,download and print NV graphics
    GS * - define downloaded bit image
    GS / - print downloaded bit image
    FS p - print NV bit image
    FS q - Define NV bit Image

    but i don't know how to use the following command in order to print a image.

    please help.
    Last edited by RobDog888; Jan 9th, 2007 at 01:49 AM.

  2. #2
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: esc/pos command

    Welcome to the Forums

    Could you possible explain a bit more on what the problem is?
    Last edited by Andrew G; Jan 9th, 2007 at 12:44 AM.

  3. #3

  4. #4
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: esc/pos command

    To print graphics you probably will have to use other print methods, try to do a search, since that prints only text and has no by-pixel control. You can print the content of a form using the form's print method (which implies you place the graphics and text to be printed on the form) but that has its drawbacks.

  5. #5
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: esc/pos command

    Please don't make duplicate threads in the future. You can edit your posts. Thanks.

  6. #6
    Fanatic Member sessi4ml's Avatar
    Join Date
    Nov 2006
    Location
    Near San Francisco
    Posts
    958

    Re: esc/pos command

    Phang, you need to create and send a bitmap image.
    I did this years ago. I create an image using 10101110000011
    The printer converted this to dots. This printer might want chr(?) values.
    Sounds like an experiment...

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: esc/pos command

    Duplicate threads merged.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    3

    Re: esc/pos command

    but how to do so..

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