FiscalPrinter.SetTrailerLine Method
2/27/2008
Sets one of the fiscal receipt trailer lines.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub SetTrailerLine ( _
lineNumber As Integer, _
text As String, _
doubleWidth As Boolean _
)
public abstract void SetTrailerLine (
int lineNumber,
string text,
bool doubleWidth
)
public:
virtual void SetTrailerLine (
int lineNumber,
String^ text,
bool doubleWidth
) abstract
public abstract void SetTrailerLine (
int lineNumber,
String text,
boolean doubleWidth
)
public abstract function SetTrailerLine (
lineNumber : int,
text : String,
doubleWidth : boolean
)
Parameters
- lineNumber
Line number of the trailer line to set.
- text
Text to which to set the trailer line.
- doubleWidth
Print this line in double-wide characters.
Remarks
The text set by SetTrailerLine is stored by the printer and retained across power losses.
lineNumber must be between 1 and the value of the NumTrailerLines property.
If text is an empty string (""), the trailer line is unset and is not printed.
doubleWidth characters are printed if the printer supports them. See the CapDoubleWidth property to determine if they are supported.
SetTrailerLine is supported only if CapSetTrailer is true. SetTrailerLine can be called only while DayOpened is false.
SetTrailerLine may cause a PosControlException to be thrown with one of the following values:
Value |
Description |
Illegal |
One of the following errors occurred:
|
ExtendedErrorBadItemDescription: |
The trailerText parameter is too long or contains a reserved word. (Can be returned only if AsyncMode is false.) |
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
CapDoubleWidth
CapSetTrailer
DayOpened
NumTrailerLines