Closed piyasil closed 3 years ago
@piyasil can you share the a code snippet for open the drawer, I tried many ways with the StarXandCompandBuilder and DrawerBuilder classes but no luck so far :(
@phuongna-comartek This works for me:
const settings = new StarConnectionSettings()
settings.interfaceType = InterfaceType.Usb
const builder = new StarXpandCommand.StarXpandCommandBuilder()
builder.addDocument(new StarXpandCommand.DocumentBuilder()
.addDrawer(new StarXpandCommand.DrawerBuilder().actionOpen(new OpenParameter())))
const printer = new StarPrinter(settings)
const commands = await builder.getCommands()
await printer.open()
await printer.print(commands)
await printer?.close()
await printer?.dispose()
I can only find the property of drawer status.