var stream = saveFileDialog.OpenFile();
int index = saveFileDialog.FilterIndex;
if (index == 1)
{
this.gcSpreadSheet1.SaveExcel(stream, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLS);
}
else
{
this.gcSpreadSheet1.SaveExcel(stream, GrapeCity.Windows.SpreadSheet.Data.ExcelFileFormat.XLSX);
}
stream.Dispose(); |