You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated zpl image command using this library. But its working in Zpl previewer But in actual printer it's not working. Please look into this.
Hello, how are you? At the moment, the library only generates ZPL code. I am planning to implement the print function. You can use another library like react-native-tcp-socket
importTcpSocketfrom'react-native-tcp-socket';import{Zpl}from"react-native-zpl-code";// Create socketconstoptions={port: 9100,host: '192.168.0.1',// printerreuseAddress: true,};constclient=TcpSocket.createConnection(options,async()=>{// Create a ZPL builder instanceconstzplBuilder=newZpl.Builder();
...
// Generate ZPL codeconstzplCode=awaitzplBuilder.build();// Write on the socketclient.write(zplCode);// Close socketclient.destroy();});
I generated zpl image command using this library.
But its working in Zpl previewer
But in actual printer it's not working.
Please look into this.
The text was updated successfully, but these errors were encountered: