PosPrinter.SetLogo Method (POS for .NET v1.12 SDK Documentation)
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Where the logo is to be set. Possible values are defined by the PrinterLogoLocation enumeration as PrinterLogoLocation.Top or PrinterLogoLocation.Bottom.
The characters that produce the logo. May consist of printable characters, escape sequences, carriage returns (13 decimal), and newline / line feed (10 decimal).
POS for .NET checks to make sure that the following is true:
The Printer device has been opened, claimed, and enabled; and
The specified location is either PrinterLogoLocation.Top or PrinterLogoLocation.Bottom.
If these validations succeed, the service object sets the logo. If either of these conditions is not met, the service object throws an exception.
The service object sets the logo by updating either the TopLogo or BottomLogo properties in the PrinterProperties helper class. After these protected properties are set, the service object can then check the properties when the application calls the PrintNormal, PrintTwoNormal, or PrintImmediate methods, to determine whether to add a top logo or bottom logo escape sequence to the print data.
Before it calls this method, the application must open, claim, and enable the device.
SetLogo may throw a PosControlException with the following ErrorCodes:
One of the following conditions has occurred: