Method: Print - Syntax 2

Prints a barcode symbol to printer. The barcode symbol is specified in the parameters of this method. Pelase use the method between the Printer.BeginDoc and the Printer.EndDoc methods.

Syntax:

type

{ Defined in the pCore1D unit }

TBarcodeTextDefine = record

DisplayText: TDisplayText;

TextPosition: TTextPosition;

TextAlignment: TTextAlignment;

TextFont: TFont;

ExtraFontSize: Integer;

end;

function Print(Left, Top: Double; Barcode: string; AutoCheckDigit: Boolean; BarColor, SpaceColor: TColor; BarcodeTextDefine: TBarcodeTextDefine; Ratio: Double; Module: Double = 0; BarcodeWidth: Integer = 0; BarcodeHeight: Double = 0; Angle: Integer = 0): Integer; overload; virtual;

Description:

Prints a barcode symbol that is specified in the parameters of this method to the printer.

Parameters:
Return:
Note:

Pelase use the method between Printer.BeginDoc and Printer.EndDoc methods. For example:

Printer.BeginDoc;

... { Print other content }

Barcode1D_Code391.Print(...); { Print the barcode }

... { Print other content }

Printer.EndDoc;

See diagram:

Print (Syntax 2)

Note:

For Delphi 3, the method overload and default value of parameter aren't supported, so the method name is changed to Print2, and the parameters Module, BarcodeWidth, BarcodeHeight, and Angle are required.

Contents