Event: OnSaved
Occurs after save the barcode symbol to an image file, when the Save method is called.
Syntax:
type
{ Defined in the pSave2D unit }
TOnSaved = procedure (Sender: TComponent; FilePath: string; ErrorCode: Integer) of object;
property OnSaved: TOnSaved;
Parameters:
- Sender: TObject; It is the object whose event handler is called.
- FilePath: string; The file path and name of the image file that you want to save the barcode symbol to.
- ErrorCode: Integer; Return the error status code of the saving operation. The Save method will return the error code value too. It can be one of these value (these consts are defined in the pSave2D unit):
- ERROR_OK (0): The saving operation succeeded.
- ERROR_NO_BARCODE_COMPONENT (1): The saving operation failed because the Barcode2D property is not link to a barcode component.
- ERROR_INVALID_BARCODE (2): The saving operation failed, because the length of Barcode or Data (only for Delphi/C++ Builder 2009 or later) property value is invalid in the barcode component, corresponding to the OnInvalidLength or OnInvalidDatalength (only for Delphi/C++ Builder 2009 or later) event of barcode component will occur. Or because there is any invalid character in the Barcode or Data (only for Delphi/C++ Builder 2009 or later) property value, corresponding to the OnInvalidChar or OnInvalidDataChar (only for Delphi/C++ Builder 2009 or later) event of barcode component will occur.
- ERROR_WRITE_PICTURE (3): The saving operation failed because the picture file write error. Perhaps the file system fulls, or the access is denied.
Contents
Copyright © 2001-2024
Han-soft Corporation. All rights reserved.