Method: PrintSize - Syntax 1

Returns actual size of a rotated barcode symbol in millimeters. The barcode symbol is specified in the properties of this barcode component.


function PrintSize(var TotalWidth, TotalHeight, SymbolWidth, SymbolHeight: Double; Module: Double; BarcodeWidth: Double = 0; BarcodeHeight: Double = 0; Angle: Integer = -1; HDPI: Integer = 0; VDPI: Integer = 0): Integer; overload; virtual;


The method returns the actual size of the rotated barcode symbol that is specified by properties of this barcode component, in millimeters.

Note, if the DisplayText property isn't set to dtNone, pelase use the method between Printer.BeginDoc and Printer.EndDoc methods, and the printer must be connected to your computer.


See diagram:

PrintSize (Syntax 1)


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