A Dijous 22 Gener 2009, [email protected] va escriure:
> If somebody uses the openerp point of sale module in a production
> environment, which type of receipt printers do you recommend to print the
> pdf tickets generated by the point of sale module?
>
> Most of the receipt printers in the market uses ESC/POS protocol or
> variants. I don't find models of dot-matrix or thermal receipt printers
> with paper roll that can be able to print raw data so they can print pdf
> files directly. Or perhaps all of them accepts raw data and I can not read
> it in their feature descriptions?

What we deid (with dotmatrix, not a POS printer) is a small class that helps 
printing text to it. Very simple, no images nor different font sizes. But at 
least, it lets you send a newPage(), and print multiline fields. Hope you're 
subscribed to the mailing list as I attache the file.

You'd typically use it like this:

p = Printer()
p.setPageHeight( 36 )
p.write( 64, "data" )
p.write( 15, "a lot of data that should be printed in multiple lines with 20 
character width", 20 )
p.newPage()
p.close()

As I said, no images nor extra features. You could take a look at it and add 
any features you need. Another thing I didn't do but would be nice is 
integrate it with the OpenERP printing system as we did with jasper_reports 
module. Maybe an escpos_reports module would be nice too.

> Thanks,
>
> ------------------------
> Jordi Esteve
> http://www.zikzakmedia.com/openerp.html
> Zikzakmedia SL
>
>
>
>
> -------------------- m2f --------------------
>
> --
> http://www.openerp.com/forum/viewtopic.php?p=28751#28751
>
> -------------------- m2f --------------------
>
>
> _______________________________________________
> Tinyerp-users mailing list
> http://tiny.be/mailman/listinfo/tinyerp-users



-- 
Albert Cervera i Areny
http://www.NaN-tic.com

Attachment: printer.py
Description: application/python

_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to