Copy current barcode symbol in the barcode component to clipboard. The barcode component is specified by the Barcode2D property.
function Copy: Integer; virtual;
The method copies the barcode symbol to clipboard. The barcode symbol is defined in the barcode component that's specified by the Barcode2D property. Also, the TImage component isn't required in the Image property of the barcode component.
This method can return one of these values (these consts are defined in the pfmxCopy2D unit):
ERROR_OK (0): The method invocation succeeded.
ERROR_NO_BARCODE_COMPONENT (1): The method invocation failed because the Barcode2D property is not link to a barcode component.
ERROR_INVALID_BARCODE (2): The method invocation failed, because the length of Barcode or Data property value is invalid in the barcode component, corresponding to the OnInvalidLength or OnInvalidDatalength event of barcode component will occur. Or because there is any invalid character in the Barcode or Data property value, corresponding to the OnInvalidChar or OnInvalidDataChar event of barcode component will occur.
ERROR_COPY_BARCODE (3): The method invocation failed because of a clipboard write error.
ERROR_UNKNOWN (4): The method invocation failed because of othe error.
ERROR_NOT_SUPPORTED (5): The method isn't supported by the barcode component that's specified in the Barcode2D property.