Interface IPrintGateway
Defines the contract for a print gateway service.
Namespace: Morpheo.Sdk
Assembly: Morpheo.Sdk.dll
Syntax
public interface IPrintGateway
Methods
| Edit this page View SourceGetLocalPrintersAsync()
Retrieves a list of printers installed on the local machine.
Declaration
Task<IEnumerable<string>> GetLocalPrintersAsync()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<string>> | A collection of printer names. |
PrintAsync(string, byte[])
Sends a print job (RAW ZPL, PDF, etc.) to a specified printer.
Declaration
Task PrintAsync(string printerName, byte[] content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | printerName | The name of the target printer. |
| byte[] | content | The content data to print. |
Returns
| Type | Description |
|---|---|
| Task |