Printing on a Custom Printer

Tags: v8preview7 v8

In the V8Preview7 API, a new method GetPrintingDeviceInfos has been added, which returns a list of objects with the interface PrintingDeviceInfo.

This interface contains two fields: Id - a unique Id for the printing device and FriendlyName - set in Syrve Office under Administration => Equipment Setup. The FriendlyName is created for the convenience of plugin developers, making it easy to identify which printing device is being worked with.

The list of devices returned by GetPrintingDeviceInfos can include not only printers but also fiscal registrars that have printing capabilities. This list may contain devices not only from the current restaurant group but also from others, as well as those that have not been assigned to any specific group.

Printing a document on any of these printers is possible using the method Print.