Hello, I put that instruction in the original example and it prints when the app starts, if I place the same lines under a button it doesn't work, so debug tells me that it is connecting to the MAC but then closes the transmission. the printer is integrated and always available. Thanks
Printer.Initialize(Me,"Printer",Encoding.Windows1252)
Sleep(1000)
Printer.SelectFromMac("00:11:22:33:44:55")
Printer.ClearBuffer
Printer.AddBuffer_Writeline(ESC_POS.BoldOn & "Ciao " & ESC_POS.DoubleOff)
Printer.AddBuffer_Writeline("Come stai?")
Printer.AddBuffer_Writeline("Bene grazie")
Printer.AddBuffer_Writeline("012345678901234567890123456789")
Printer.AddBuffer_Writeline("")
Printer.AddBuffer_Writeline("")
Sleep(500)
Printer.flushAllAndClose