Again a Excel question. My client send me a Excel File that contains a Drop Down List (Combobox), and i need copy that Combobox or build a new with the information inside. For excel i find that dropdownlist was named as Data Validation (i already got it, but can do nothing with him).
I Have Gembox dll and NativeExcel dll and didnt find any solution.
With GemBox i already get this:
ExcelFile ef = ExcelFile.Load("Modelo_AA.xlsx");
ExcelWorksheet ws = ef.Worksheets[0];
ExcelFile efnovo = new ExcelFile();
ExcelWorksheet wsnovo = efnovo.Worksheets.Add("Hello");
DataValidationCollection dvc = ws.DataValidations;
DataValidation dv = dvc[0];
bool dd = dv.InCellDropdown; //here i get true
Thanks Andrew
Edit: I suposed the datavalitation is associated with dropdownlist!
Edit2: Main problem is copy a drop down list from a WorkBook to other!