Hi Jordi, I posted this to the mailing list but it doesn't synchronize with the forum anymore (again). If you want the code it I can send it to you...
What we did (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 attached 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. ------------------------ Albert Cervera i Areny http://www.NaN-tic.com -------------------- m2f -------------------- -- http://www.openerp.com/forum/viewtopic.php?p=28782#28782 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman/listinfo/tinyerp-users
