E
engahmedbarbary
Guest
I work on c# app I need to compress file so I use
system.io.compression name space
zipfile.createdirecor
How to determine extension type of file compress as .xlsx
meaning compress only file with extension type xlsx
so how to do that
I use code as below :
using System.IO.Compression;
string pathToCreate = ExcelExportPath +"\\file" + Guid.NewGuid().ToString();
string zipPath = ExcelExportPath + "\\result" + Guid.NewGuid().ToString() + ".zip";
ZipFile.CreateFromDirectory(pathToCreate, zipPath);
so please can you help me ?
Continue reading...
system.io.compression name space
zipfile.createdirecor
How to determine extension type of file compress as .xlsx
meaning compress only file with extension type xlsx
so how to do that
I use code as below :
using System.IO.Compression;
string pathToCreate = ExcelExportPath +"\\file" + Guid.NewGuid().ToString();
string zipPath = ExcelExportPath + "\\result" + Guid.NewGuid().ToString() + ".zip";
ZipFile.CreateFromDirectory(pathToCreate, zipPath);
so please can you help me ?
Continue reading...