Fiscal Printer

Asked

Viewed 1,169 times

1

I need to print a normal HTML page but using a tax printer (I don’t know if this is the correct term but it’s those smaller printers that we see in markets). There is an "emulator" to do these tests?

  • 1

    If it is really a tax printer has no way, check the model and if it has a seal that usually identify a tax printer.

  • 1

    If you will do this by default browser without any extra help on the user’s computer, you can only count on the browser printing system. There’s nothing to do. Systems web are not the solution to all problems.

  • Here there is a Bematech emulator for testing. I know it works with desktop applications. I don’t know if it helps you much.

  • Fiscal Bematech Thermal printer emulator MP-4200 TH FI: http://partners.bematech.com.br/bemacast/Paginas/post.aspx?idPost=6092

  • 1

    I may be wrong, but something tells me you don’t want an emulator, and people are taking it literally. I don’t see how an emulator can help the problem. I think the term was used wrong, I think I wanted some software that would allow printing on these printers by the browser, which is not an emulator. But if the wish is an emulator, you cannot answer without knowing which printer you are using and will only produce a list of useless answers to the real problem.

  • Did it help you? Do you think you can accept the answer?

  • I believe that you can make a system in the backend for example java communicating with the printer and through services Rest you communicate from the HTML page with the backend server. To print in the backend you make a form to be printed on the printer. I have not yet tested this solution but I will try to make a system of this model.

Show 2 more comments

2 answers

6

If you are using a tax printer even for tax purposes, forget it, the legislation itself prevents use through browsers. Not explicitly but by the software type-approval requirements.

Even if it is a tax-free printer or is used for non-tax purposes, it still has the problem that the printer can only be accessed by the browser. It has control over how to send information to the printer. Even so, it still has the operating system limit.

Often these printers are already problematic to access from an application desktop given the limitations of the operating system. A common solution is to write directly to the port.

Imagine the difficulty of going through this with the extra limitations that the browser imposes. You can try creating a page, probably without HTML, and have it printed and see if you get any results. But I doubt it will work. Apart from this you can ask for support from the manufacturer but I think he will answer the same as I am answering here.

Otherwise it is possible to create an application that accesses the printer for the user to access. Eventually it can communicate with the browser but I think this solution is usually bad. Most of the time it is easier to make an application desktop that solves every problem. Applications web do not solve all problems, a hammer does not work well with a screw.

So far I don’t know a way to solve this problem otherwise. And it’s something I’ve searched a lot.

And depending on what the definition of a normal HTML page is, you won’t be able to print on this type of printer even if you have direct access to it. These printers are not usually able to print sophisticated things like an HTML page.

Probably not what you want but it is possible to do the print job on the server without involving HTML in the print itself, then you have full control as if it were an application desktop.

-1

Bematech has emulators for its printers. Epson also. Daruma, as far as I know, has no emulator. You have to do your tests with a physical printer. I don’t know about the other manufacturers.

I would put the links here, but the links come and go. They would be broken in a year or two. It’s more efficient to pick them up when you need them.

Remember that each printer has its own API. You will need to develop a different code for each printer.

Another point to consider is that at least with the three manufacturers mentioned, it is no use sending HTML code to it waiting for it to come formatted on paper. You will have to use each printer’s own formatting code.

And to top it off... If you fail to deliver a tax coupon to a customer because your code uses the emulator in production instead of actually printing, you will be arrested in no time.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.