How do I print a coupon in Java, both in dot matrix printer, and in non-fiscal thermal printer?
And covering all manufacturers ... Are you like?
Does the programming change depending on the manufacturer?
How do I print a coupon in Java, both in dot matrix printer, and in non-fiscal thermal printer?
And covering all manufacturers ... Are you like?
Does the programming change depending on the manufacturer?
Each fiscal printer manufacturer releases its sdk for developers. You will have to develop individually because the functions depend on how each company set up. If you make it to Daruma and Bematech you will already have covered a good part of the market. But still have other brands like Elgin, etc ... Regarding to cover all manufacturers you can assemble an interface with some standard methods, but there are many methods and with different signatures (Open coupon, DATE coupon, etc ...), then I think you'd better implement these two brands and then gradually you move the project forward.
The printing of coupons depends on several factors and the state where the sale is made, I will try to explain in a general way.
The coupon can be of 3 types:
Item 1 - Normal coupon, depends on a fiscal printer (sealed). Each manufacturer releases a DLL to send commands to the printer, simplifying development. The list of commands for this type of printer are theoretically the same between models and manufacturers, but only changes the name of each function.
Item 2 and 3 - Can be printed on any type of printer. It has QRCode and other complex elements, and if you are going to use a coupon printer that does not need to be sealed, you will have to use the manufacturer's DLL to access the functions.
To do something centralized, you'll have to interface with the commands you want to use and deploy for each printer using the manufacturer's DLL.
Remembering that the DLL may be different between printer models from the same manufacturer.