Posted 26 October 2017, 12:44 am EST
I have an issue with the ComboBoxCellType when exported to excel. It displays the ItemData value of the cell but the dropdown displays the Item of the combobox.
Please see attached for the issue.
00001 = For Preliminary
'------------------------------------------------------
Here’s my comboboxcelltype settings, as you can see i have different collection of the Item and ItemData of the comboboxCellType
Dim cmb As New CellType.ComboBoxCellType ’ コンボボックス設定用
cmb.DropDownOptions = FarPoint.Win.DropDownOptions.Button cmb.Editable = False cmb.DropDownWhenStartEditing = True cmb.DoubleClickTextToDropDown = True cmb.StopEditingAfterDropDownItemSelected = True cmb.EditorValue = CellType.EditorValue.String cmb.Items = pstrDisplay cmb.ItemData = pstrData cmb.EditorValue = CellType.EditorValue.ItemData
'---------------------------------------------------------------------------------------------
Here’s my save to excel code
sprVw.SaveExcel(ofd.FileName, FarPoint.Excel.ExcelSaveFlags.SaveCustomColumnHeaders Or FarPoint.Excel.ExcelSaveFlags.UseOOXMLFormat)
'------------------------------------------------------------------------
My target is to display the ComboBoxCellType.Item (‘For Preliminary’) not the ItemData value.