Response.Clear(); Response.ContentType = "application/zip"; Response.AddHeader("content-disposition", "filename=" + "Test.xlsx"); string path = @"C:\ReportsDocs"; using (ZipFile zip = new ZipFile()) { zip.AddFile(path + @"\docProps\core.xml", "docProp"); zip.AddFile(path + @"\docProps\app.xml", "docProp"); zip.AddFile(path + @"\docProps\thumbnail.wmf", "docProp"); zip.Save(Response.OutputStream); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)