Esempio n. 1
0
        // save to a single-sheet book
        void _btnSaveSheet_Click(object sender, System.EventArgs e)
        {
            // choose file
            SaveFileDialog dlg = new SaveFileDialog();

            dlg.DefaultExt = "xls";
            dlg.FileName   = "*.xls";
            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            // save grid as sheet in the book
            FileFlags flags = (_chkFixed.Checked)? FileFlags.IncludeFixedCells: FileFlags.None;

            _flex.SaveGrid(dlg.FileName, FileFormatEnum.Excel, flags);
        }