简体   繁体   中英

Inserting in Specified cell in Excel using Open XML

Can anyone help me as to how can I insert a value into a specified cell in an excel sheet using Open XML in C#? For example I want to insert into row 'E10' in an Excel sheet how can I do it? I am using Open XML SDK v2.0.

YOu can use the E xcel Helper Library for this. Something like this:-

excel.Add(new ExcelCell(1, 1, "test1,1"));
excel.Add(new ExcelCell(1, 2, "test1,2"));
excel.Add(new ExcelCell(2, 2, "test2,2"));
excel.Add(new ExcelCell(2, 3, "test2,3"));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM