Spread Windows Forms 15.0
FarPoint.Excel Assembly / FarPoint.Excel Namespace / ZipHelper Class / CompressFile Method / CompressFile(ZipOutputStream,String,Stream) Method
zip output stream
Name of the file
file stream


In This Topic
    CompressFile(ZipOutputStream,String,Stream) Method
    In This Topic
    Compresses the file.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CompressFile( _
       ByVal zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream, _
       ByVal fileName As String, _
       ByVal fileStream As Stream _
    ) As Boolean
    'Usage
     
    
    Dim zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream
    Dim fileName As String
    Dim fileStream As Stream
    Dim value As Boolean
     
    value = ZipHelper.CompressFile(zipOutputStream, fileName, fileStream)
    public static bool CompressFile( 
       ICSharpCode.SharpZipLib.Zip.ZipOutputStream zipOutputStream,
       string fileName,
       Stream fileStream
    )

    Parameters

    zipOutputStream
    zip output stream
    fileName
    Name of the file
    fileStream
    file stream

    Return Value

    successful or not
    See Also