GrapeCity.ActiveReports.Export.Excel.v12 アセンブリ > GrapeCity.SpreadBuilder 名前空間 > DDSheets クラス : Count プロパティ |
if (MessageBox.Show ("Your spreadsheet is " + sb.Sheets.Count.ToString() + " sheet(s) long. Okay to save?", "Save", MessageBoxButtons.YesNo) == DialogResult.Yes) { //ワークブックをExcelファイルに保存する sb.Save (Application.StartupPath + @"\x.xls"); MessageBox.Show("Your Spreadsheet, " + sb.Sheets[0].Columns(0).OwnerSheet.Name + ", has been saved to " + Application.StartupPath + "\\x.xls"); } sb.Clear();
If MessageBox.Show("Your spreadsheet is " + sb.Sheets.Count.ToString() + " sheet(s) long. Okay to save?", "Save", MessageBoxButtons.YesNo) = DialogResult.Yes Then 'ワークブックをExcelファイルに保存する sb.Save(Application.StartupPath + "\x.xls") MessageBox.Show("Your Spreadsheet, " + sb.Sheets(0).Columns(0).OwnerSheet.Name + ", has been saved to " + Application.StartupPath + "\x.xls") End If sb.Clear()