private void Form1_Load(object sender, EventArgs e)
{
fpSpread1.TabStripRatio = 0.8f;
// テストデータ
fpSpread1.AsWorkbook().ActiveSheet.Cells[0, 0].Value = "aaa";
fpSpread1.AsWorkbook().ActiveSheet.Cells[1, 0].Value = "bbb";
fpSpread1.AsWorkbook().ActiveSheet.Cells[2, 0].Value = "ccc";
}
private void button1_Click(object sender, EventArgs e)
{
// シートをコピーします
fpSpread1.AsWorkbook().Worksheets[0].Copy(0);
}
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
FpSpread1.TabStripRatio = 0.8F
' テストデータ
FpSpread1.AsWorkbook().ActiveSheet.Cells(0, 0).Value = "aaa"
FpSpread1.AsWorkbook().ActiveSheet.Cells(1, 0).Value = "bbb"
FpSpread1.AsWorkbook().ActiveSheet.Cells(2, 0).Value = "ccc"
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' シートをコピーします
FpSpread1.AsWorkbook().Worksheets(0).Copy(0)
End Sub