Codeunit "ForNAV Local Printers"
ID 6188510
Methods
IsServerPrinter
Determines if a printer name is connected directly to the service tier machine.
procedure IsServerPrinter(PrinterName: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PrinterName | Text |
Nam e of the printer |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the printer can be seen from the service tier. |
OpenDirectPrinter
procedure OpenDirectPrinter(DirectPrinterName: Text): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DirectPrinterName | Text |
Returns
| Type | Description |
|---|---|
| Boolean |
Events
OnFilterDirectPrinters
Use this event to filter the list of direct printers available to the user in the request page. This enables you to have user specific printers.
[IntegrationEvent(False,False)]
local procedure OnFilterDirectPrinters(CloudPrinterName: Text; LocalPrinterName: Text; var RemoveFromList: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| CloudPrinterName | Text |
Name of the direct printer. |
| LocalPrinterName | Text |
Name of the local printer used by the direct printer. |
| RemoveFromList | Boolean |
Set this variable to true if you want to remove the printer from the list. |