Пример #1
0
        //this version to be used for GUI export - there is another version of this for batch export in ReportGenerator.cs
        private void ExportToExcel(string filename)
        {
            ExcelWriter writer = new ExcelWriter();

            foreach (DataTable table in m_dataset.Tables)
            {
                writer.WriteDataTable(table);
            }

            writer.SaveToFile(filename);
        }
Пример #2
0
        // this version to be called in batch export, since dataset gets loaded somewhere else
        internal void ExportToExcel(string filename, DataSet dataset)
        {
            ExcelWriter writer = new ExcelWriter();

            foreach (DataTable table in dataset.Tables)
            {
                writer.WriteDataTable(table);
            }

            writer.SaveToFile(filename);
        }
Пример #3
0
        // this version to be called in batch export, since dataset gets loaded somewhere else
        internal void ExportToExcel(string filename, DataSet dataset)
        {
            ExcelWriter writer = new ExcelWriter();

            foreach (DataTable table in dataset.Tables)
            {
                writer.WriteDataTable(table);
            }

            writer.SaveToFile(filename);
        }
Пример #4
0
        //this version to be used for GUI export - there is another version of this for batch export in ReportGenerator.cs
        private void ExportToExcel(string filename)
        {
            ExcelWriter writer = new ExcelWriter();

            foreach (DataTable table in m_dataset.Tables)
            {
                writer.WriteDataTable(table);
            }

            writer.SaveToFile(filename);
        }