Hi.
When you create an excel sheet with the EPPlus library it's possible to add DataValidation lists to it and this works fine. When you then save the excel file to disk and afterwords read it again with the EPPlus library you can still find the DataValidation lists that were created, so this to works fine too.
But if you open the excel file in Microsoft excel and then save it and now open it with EPPlus library, the DataValidation list can't be found anymore. I've looked at the xml files that reside in a xlsx file and I saw that the DataValidation lists still exist, but the are located in a different xml header then when they were created with EPPlus.
This is probably the reason they aren't found anymore by EPPlus, but can somebody tell me how I can still get this to work?
A workaround will be fine too, the only thing I want to know is what DataValidationList is added to what cell.
Reproduction steps.
1. Create an excel sheet with a DataValidationList based on a formula.
2. Open the created excel sheet in Microsoft excel.
3. Save the file within Microsoft excel.
4. Open the file with the EPPlus library
5. Notice that the DataValidation lists aren't there anymore.
I hope someone can help me.
Kind Regards,
When you create an excel sheet with the EPPlus library it's possible to add DataValidation lists to it and this works fine. When you then save the excel file to disk and afterwords read it again with the EPPlus library you can still find the DataValidation lists that were created, so this to works fine too.
But if you open the excel file in Microsoft excel and then save it and now open it with EPPlus library, the DataValidation list can't be found anymore. I've looked at the xml files that reside in a xlsx file and I saw that the DataValidation lists still exist, but the are located in a different xml header then when they were created with EPPlus.
This is probably the reason they aren't found anymore by EPPlus, but can somebody tell me how I can still get this to work?
A workaround will be fine too, the only thing I want to know is what DataValidationList is added to what cell.
Reproduction steps.
1. Create an excel sheet with a DataValidationList based on a formula.
2. Open the created excel sheet in Microsoft excel.
3. Save the file within Microsoft excel.
4. Open the file with the EPPlus library
5. Notice that the DataValidation lists aren't there anymore.
I hope someone can help me.
Kind Regards,