Is web tax printer possible?

Asked

Viewed 2,956 times

3

I am implementing a system for issuing a invoice with tax printer in C#, but I would like to know if it is possible via the web using Javascript HTML, CSS etc.

How would I do that? Through what tools and resources?

  • As you mentioned "tax printer", I assume you’re talking about ECF (Tax Coupon Issuer). In this case it is not possible because the homologation for this type of emission is very rigid (eg generate md5 key of the executable, dll, of the emitting software). For Electronic Coupon (NFC-e - which is largely replaced by the ECF in Brazil) it may be possible since there are NF-e emission projects via the Web, the difference is the type of the printer. See the project Electronic Invoice in PHP, good luck. @Asura-Khan

  • Thank you so much for your help. I didn’t want a step by step, actually I wanted this solution you gave me, so I give my research procedure. Thank you very much.

1 answer

3


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.

Martelo com parafuso

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.

Browser other questions tagged

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