Example #1
0
    private void ToExcel()
    {
        ExcelWorker exc = new ExcelWorker();

        exc.SetText(1, 4, string.Format("Вычет часов за {0} семестр группы {1}.",
                                        m_comboBoxSemesters.SelectedItem, m_groupInfo.group_name));
        var dataGridForExcel = GetDataGridForExcel();

        exc.WriteDataGrid(dataGridForExcel);
        exc.SetColumnWidth(1, 1, 40);
        exc.WrapText(1, 1, dataGridForExcel.RowCount, 1, true);
        exc.Visible = true;
        exc.Dispose();
    }