FiscalPrinter.BeginTraining Method (POS for .NET v1.12 SDK Documentation)
2/27/2008
Starts training operations.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub BeginTraining
public abstract void BeginTraining ()
public:
virtual void BeginTraining () abstract
public abstract void BeginTraining ()
public abstract function BeginTraining ()
Remarks
BeginTraining is supported only if CapTrainingMode is true.
Output in this mode can be produced by using the PrintRec methods to print a receipt, or other methods to print reports.
BeginTraining can be successfully called only if the current value of the PrinterState property is Monitor.
If BeginTraining is successful, the TrainingModeActive property is changed to true.
BeginTraining may cause a PosControlException to be thrown with one of the following ErrorCodes:
Value |
Description |
Busy |
Cannot perform while output is in progress. |
Illegal |
The printer does not support training mode (see the CapTrainingMode property). |
ExtendedErrorWrongState |
The printer’s current state does not allow this state transition. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.
See Also
Reference
FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
EndTraining