private void Form1_Load(object sender, EventArgs e)
{
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
cmbocell.Items = new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun" };
fpSpread1.ActiveSheet.Cells[1, 1].CellType = cmbocell;
fpSpread1.ActiveSheet.SetValue(1, 1, "Feb");
}
private void button1_Click(object sender, EventArgs e)
{
// コンボボックス型セルのデータのみを出力
fpSpread1.SaveExcel("..\\..\\Book1.xls", FarPoint.Excel.ExcelSaveFlags.ComboDataOnly);
}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
cmbocell.Items = New String() {"Jan", "Feb", "Mar", "Apr", "May", "Jun"}
FpSpread1.ActiveSheet.Cells(1, 1).CellType = cmbocell
FpSpread1.ActiveSheet.SetValue(1, 1, "Feb")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' コンボボックス型セルのデータのみを出力
FpSpread1.SaveExcel("..\..\Book1.xls", FarPoint.Excel.ExcelSaveFlags.ComboDataOnly)
End Sub