private static CreateOpenDocument ( string filename, string directory ) : void | ||
filename | string | The filename. |
directory | string | The directory to zip. |
return | void |
private static void CreateOpenDocument(string filename, string directory)
{
try
{
FastZip fz = new FastZip();
fz.CreateEmptyDirectories = true;
fz.CreateZip(filename, directory, true, "");
fz = null;
}
catch(Exception)
{
throw;
}
}