Xceed Zip for COM/ActiveX on x86/x64 Documentation
Xceed Zip control reference / Xceed Zip control events / PreviewingFile event
In This Topic
    PreviewingFile event
    In This Topic

    Description

    The PreviewingFile event is triggered once for each file that is being listed as a result of calling the PreviewFiles method.

    The file information provided by the PreviewingFile event's parameters is not modifiable.

    Declaration  

    Event PreviewingFile(sFilename As String, sSourceFilename As String, lSize As Long, xAttributes As xcdFileAttributes,
    dtLastModified As Date, dtLastAccessed As Date, dtCreated As Date, bExcluded As Boolean, xReason As xcdSkippingReason)

     

    Event PreviewingFile64(sFilename As String, sSourceFilename As String, lSizeLow As Long, lSizeHigh As Long,
    xAttributes As xcdFileAttributes, dtLastModified As Date, dtLastAccessed As Date, dtCreated As Date,
    bExcluded As Boolean, xReason As xcdSkippingReason)

    Declaration (DLL API)  
    xcdPreviewingFileParams * pParams = ( xcdPreviewingFileParams * ) lParam;

    Parameters

    Parameter Description
    sFilename  The path and filename of the file being listed, exactly as it would be stored in a zip file if the Zip method were to be executed instead of the PreviewFiles method.
    sSourceFilename  The real path and filename of the file being listed.
    lSize  The file's size in bytes.
    lSizeLow
    lSizeHigh (64)
    The 32 low-order and high-order bits representing the file's original uncompressed size, in bytes.
    xAttributes  The file's attributes.
    dtLastModified  The last modification date and time stamp.
    dtLastAccessed  The last accessed date and time stamp.
    dtCreated  The creation date and time stamp.
    bExcluded  Would this file be processed or excluded if the Zip method were to be called with the same property settings as when the PreviewFiles method was called?
    xReason  If it will be excluded, why?

    Applicable methods

    PreviewFiles