Announcement

Collapse
No announcement yet.

How to print a receipt using POS printers?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to print a receipt using POS printers?

    Hello.
    I have Epson T20 POS printer. i tried to print one column from a grid after change its view from horizontal to vertical. only got the grid title printed in very long paper! tried to print from pdf, the printer only move the paper out [about two cm]!!
    No problem with printer driver because test page printing goes very well.
    any one help me to figure out how to setup my report or grid to be printed perfectly as a receipt?
    Appreciate your help.

    Thanks
    Scriptcase V8.1 Enterprise Edition.

  • #2
    41Yg3fzY5yL._SY300_.jpg Epson T20 POS Printer.
    Scriptcase V8.1 Enterprise Edition.

    Comment


    • #3
      The problem is that label printers are no ordinary printers. They listen to special commands. As your webapplication is not 'hanging' on that printer as a desktop application does, this is hard to solve. The only solution I could think of - and I don't know if it's available for your printer - is some kind of com file so that your javascript in the client can access your printer. I still use a Delphi client with soap protocol to solve label printing issues.
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        I'am printing adress labels from a scriptcase app to a Zebra label printer. But, that's not on the direct way ... The special commands, mentioned from aducom, are generated from Nicelabel (a label software). I'am filling a database table in my SC app with the print output and Nicelabel read & printed this on the zebra printer. Works 1a, but not just so ...
        Best regards: - Reinhard -

        I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

        Comment


        • #5
          Look at this https://code.google.com/p/jzebra/
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Originally posted by Giu View Post
            That is *VERY* promissing. Do you have experience with this?
            Albert Drent
            aducom software netherlands
            scriptcase partner, reseller, support and (turn-key) development
            www.scriptcase.eu / www.scriptcase.nl

            Comment


            • #7
              Did some testing and it's working well! Now I can get rid of my Delphi Clients. Tnx!!
              Albert Drent
              aducom software netherlands
              scriptcase partner, reseller, support and (turn-key) development
              www.scriptcase.eu / www.scriptcase.nl

              Comment


              • #8
                Originally posted by aducom View Post
                That is *VERY* promissing. Do you have experience with this?
                No. I just followed because I will need it in my next project.

                Originally posted by aducom View Post
                Did some testing and it's working well! Now I can get rid of my Delphi Clients. Tnx!!
                Can you share the howto?
                /Giuseppe

                Professional Scriptcase Services
                Some Customers opinions

                Comment


                • #9
                  Thanks a lot. 'Albert' 'Reinhard' and ' Giu'.
                  Albert would you please share your experience with this issue?

                  All the best
                  Hero
                  Scriptcase V8.1 Enterprise Edition.

                  Comment


                  • #10
                    Originally posted by Giu View Post
                    No. I just followed because I will need it in my next project.



                    Can you share the howto?
                    So far I just downloaded the package and looked into the samples there. It's a bit of javascript which is used to include the java package and a bit of javascript to get the printing done. With the sample I was able to download and print a pdf directly without any problems. So I need to find a way to integrate it into scriptcase and I will share that info (as I always do ;-) But for someone who knows how to integrate javascript this should be doable w.o. much trouble afaik. A matter of downloading, installing and... run?
                    Albert Drent
                    aducom software netherlands
                    scriptcase partner, reseller, support and (turn-key) development
                    www.scriptcase.eu / www.scriptcase.nl

                    Comment


                    • #11
                      Hey guys, I've very good news about this issue. i removed my printer driver [witch i installed from devices and printers : Have a disk] and i followed the instructions carefully to install the driver from Epson T20 CD and i really did not believe my eyes when i saw my receipt printed, i tried to print special characters from different languages, all tests are done perfectly.
                      Attached photo is Scriptcase grid row [vertical view] from Scriptcase samples, proof of what i am talking about..
                      We don't need Java any more
                      Attached Files
                      Last edited by iiiax; 05-25-2014, 09:51 PM.
                      Scriptcase V8.1 Enterprise Edition.

                      Comment


                      • #12
                        The only issue i am facing now is Pdf printing. yes it is print from Pdf but the printing area is very small, I'll try to fix this problem.
                        Scriptcase V8.1 Enterprise Edition.

                        Comment


                        • #13
                          New Epson intelligent POS printer, print directly from the browser without any problem
                          http://www.epson.com.au/pos/products...sp?id=tm-t70-i
                          Scriptcase V8.1 Enterprise Edition.

                          Comment


                          • #14
                            My current and temporary solution is to print my receipt as PDF (I use PDF Factory) then print using my POS printer - Epson TM20 , two steps but works for me.
                            Note: You need to edit paper size in PDF factory, width between 75 to 90 mm (make your own settings to fit your purpose).
                            Scriptcase V8.1 Enterprise Edition.

                            Comment


                            • #15
                              You have additional options to print to a Epson Thermal POS printer, just like the one you show above.

                              My approach is to use browser print an Invoice created with the margins suitable to the width of the printer. This approach relies on a suitable windows driver being installed on the pc.

                              My preferred approach is to use raw printing. Print direct to the POS printer, by coding your receipt printing page to send escpos commands. This is similar to teh Zebra approach on teh previous page.

                              I prefer to use this library from https://github.com/mike42/escpos-php as this gives me more control from my application.

                              Hope it helps others as well.

                              Anil
                              ************************************************** ********
                              We are Developing your Future Business Requirement right now with Scriptcase.
                              www.sri.com.au & www.madikonda.com

                              Comment

                              Working...
                              X