PosPrinter.CharacterSet Property
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Usage
'Usage
Dim posPrinter1 As PosPrinter
Dim returnValue As Integer
returnValue = posPrinter1.CharacterSet
Dim sampleValue As Integer
posPrinter1.CharacterSet = sampleValue
Syntax
'Declaration
Public MustOverride Property CharacterSet() As Integer
public abstract int CharacterSet {get; set;}
public: property virtual Int32 CharacterSet{
Int32 get();
Void set(Int32);
}
public abstract int get_CharacterSet();
public abstract void set_CharacterSet(int);
public abstract function get CharacterSet() : int;
public abstract function set CharacterSet(int);
Remarks
Contains the numeric value indicating the character set the application wants to use for printing characters.
CharacterSet is typically initialized to -1. The application should set CharacterSet to a value from those listed in the CharacterSetList property. (The service object sets CharacterSetList to the character sets available for mapping.) To access this property, the application must open, claim, and enable the device.
Values are:
Value |
Meaning |
VRange 101 - 199 |
Device-specific character sets that do not match a code page or the ASCII or Windows ANSI character sets. |
Range 400 - 990 |
Code page; matches one of the standard values. |
Unicode |
The character set supports Unicode. The value of this constant is 997. |
Ascii |
The ASCII character set, supporting the ASCII characters between 0x20 and 0x7F. The value of this constant is 998. |
Windows |
The Windows ANSI character set. The value of this constant is 999. This is exactly equivalent to the Windows code page 1252. |
Range 1000 and higher |
Windows code page; matches one of the standard values. |
Accessing CharacterSet can cause the following exception to be thrown:
Value |
Meaning |
Illegal |
The application specified a value for CharacterSet that doesn’t exist in the list provided by the service object (that is, in the list of values specified for the CharacterSetList property). |
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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
See Also
Reference
PosPrinter Class
PosPrinter Members
Microsoft.PointOfService Namespace
CharacterSetList