Click or drag to resize

OpsContextSubmitPrintJob Method

Submits a data to a POS printer

Namespace:  Micros.Ops
Assembly:  Ops (in Ops.dll) Version: 18.2
Syntax
C#
public PrinterStatus SubmitPrintJob(
	int printerNumber,
	int backupPrinterNumber,
	string description,
	Object oPrintData
)

Parameters

printerNumber
Type: SystemInt32
the device ID of the primary printer
backupPrinterNumber
Type: SystemInt32
the device ID of the backup printer to use of printing to the primary printer fails, e.g., paper jam
description
Type: SystemString
description of the print job that may appear in a dialog if printing fails
oPrintData
Type: SystemObject
the content to be printed

Return Value

Type: PrinterStatus
returns Success if printer number is 0 or references a configured printer, of the print job submission, Success indicates job was submitted sucessfully
Remarks

The printerNumber can be set to

Examples
[ExtensibilityMethod]
public void MyExtensionMethod(object args)
{
    OpsContext.ShowMessage(string.Format("Hello from '{0}' using args '{1}'", ApplicationName, args));
}
See Also