共用方式為


PosPrinter.ValidateData(PrinterStation, String) Method

Definition

Determines whether a data sequence, possibly including one or more escape sequences, is valid for the specified station, before it calls the PrintImmediate, PrintNormal, or PrintTwoNormal methods.

public abstract void ValidateData (Microsoft.PointOfService.PrinterStation station, string data);
abstract member ValidateData : Microsoft.PointOfService.PrinterStation * string -> unit
Public MustOverride Sub ValidateData (station As PrinterStation, data As String)

Parameters

station
PrinterStation

The printer station to be used. Possible values are defined by the PrinterStation enumeration. Valid values are as follows: PrinterStation.Journal, PrinterStation.Receipt, or PrinterStation.Slip.

data
String

The data to be validated. May include printable data and escape sequences. See Remarks in this topic.

Applies to