Click or drag to resize

OpsContextSubmitPrintJob Method

Submits a data to a POS printer

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

Parameters

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

Return Value

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

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