示例#1
0
        private void export_to_excel()
        {
            Dictionary <string, double> Data = new Dictionary <string, double>();

            // here i will check whick is not empty and show it
            //foreach (DataRow row in table.Rows)
            //{
            //    //check key exist before in dictionary

            //  //  check_and_ADD(ref Data, row[TB_1.Tag.ToString()].ToString(), row[TB_2.Tag.ToString()].ToString());
            // //   check_and_ADD(ref Data, row[TB_3.Tag.ToString()].ToString(), row[TB_4.Tag.ToString()].ToString());
            //}
            ToExcelC.rowcounts = EIndex;
            ToExcelC.rowcounts = EIndex;
            ToExcelC a = new ToExcelC();

            //saveFileDialog.Filter = "xlsx file|*.xlsx";
            //saveFileDialog.Title = "Capacitorsheet Metering Save To";
            //saveFileDialog.ShowDialog();
            //if (saveFileDialog.FileName != "")
            //{
            a.export(table, "");
            //}

            saveFileDialog.FileName = "";
        }
示例#2
0
        private void export_to_excel()
        {
            Dictionary <string, double> Data = new Dictionary <string, double>();

            ToExcelC.rowcounts = EIndex;
            ToExcelC a = new ToExcelC();

            a.export(table, "");
        }