I need help. How can i add a drop down in excel using Epplus? No need for validation. I just need to add this to my template. Records in the drop down are not dynamic.
using (ExcelPackage p = new ExcelPackage()) {
ExcelWorksheet ws = obj.CreateSheet(p, "sheetname", 1, true);
var unitmeasure = ws.DataValidations.AddListValidation("a1");
unitmeasure.Formula.Values.Add("Sq Ft");
unitmeasure.Formula.Values.Add("Meter");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With