Printing to a custom printer
A new method has been added to the V8Preview7 API GetPrintingDeviceInfos
, which returns a list of objects with an interface PrintingDeviceInfo
.
This interface stores two fields: Id
- unique device ID for printing and FriendlyName
- set in Syrve Office in Administration => Equipment Settings. FriendlyName
created for the convenience of the plugin developer, so that it is easy to determine which printing device is being worked with.
List of devices returned GetPrintingDeviceInfos
, it may contain not only printers, but also fiscal recorders with printing capabilities. This list may include devices not only from the current restaurant group, but also from others, and those that have not been defined for any specific group.
Printing a document on any of these printers is possible using the method Print
.