//your excel file path
string filepath = @"C:\Users\xxx\Desktop\xxx.xlsx";
//an excel file is just a zip file
using (var zip = System.IO.Compression.ZipFile.OpenRead(filepath))
using (var stream = zip.GetEntry("xl/theme/theme1.xml").Open())
using (var rd = new StreamReader(stream))
{
 var xml = rd.ReadToEnd();
}
Thứ Ba, 21 tháng 11, 2017
[C#] How to read theme data of an excel file
Đăng ký:
Đăng Nhận xét
                                      (
                                      Atom
                                      )
                                    
 
Không có nhận xét nào :
Đăng nhận xét