protected void ExportExcelDailyManual(DataTable RoomTable)
        {
            DataTable GeneralInfo = BusinessLogicBridge.DataStore.getGeneralConfig();
            string filePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            filePath = filePath + @"\" + GeneralInfo.Rows[0]["path_all_document"].ToString();

            ReportDocuments.electricDay PrintElectric = new DXWindowsApplication2.ReportDocuments.electricDay();

            if (Directory.Exists(Path.Combine(filePath, "Report")) == false)
            {
                Directory.CreateDirectory(Path.Combine(filePath, "Report"));
            }

            string pathname = DXWindowsApplication2.MainForm.CombinePaths(Environment.GetFolderPath(Environment.SpecialFolder.Personal), GeneralInfo.Rows[0]["path_all_document"].ToString(), "Report", "ElectricDaily_" + DateTime.Now.ToString("yyyyMMdd") + ".xls");

            // Building, roomFrom, roomTo, dateFrom, dateTo

            PrintElectric.loopGenDataRow(RoomTable, lookUpEditBuilding.Text, lookUpEditRoomFrom.EditValue.To<int>(), lookUpEditRoomTo.EditValue.To<int>(), dateEditDay.EditValue.To<DateTime>());

            //PrintElectric.ExportToXls(pathname);
            PrintElectric.ShowPreview();
        }
        protected void ExportExcelDailyManual(DataTable RoomTable)
        {
            DataTable GeneralInfo = BusinessLogicBridge.DataStore.getGeneralConfig();
            string    filePath    = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            filePath = filePath + @"\" + GeneralInfo.Rows[0]["path_all_document"].ToString();

            ReportDocuments.electricDay PrintElectric = new DXWindowsApplication2.ReportDocuments.electricDay();

            if (Directory.Exists(Path.Combine(filePath, "Report")) == false)
            {
                Directory.CreateDirectory(Path.Combine(filePath, "Report"));
            }

            string pathname = DXWindowsApplication2.MainForm.CombinePaths(Environment.GetFolderPath(Environment.SpecialFolder.Personal), GeneralInfo.Rows[0]["path_all_document"].ToString(), "Report", "ElectricDaily_" + DateTime.Now.ToString("yyyyMMdd") + ".xls");

            // Building, roomFrom, roomTo, dateFrom, dateTo

            PrintElectric.loopGenDataRow(RoomTable, lookUpEditBuilding.Text, lookUpEditRoomFrom.EditValue.To <int>(), lookUpEditRoomTo.EditValue.To <int>(), dateEditDay.EditValue.To <DateTime>());

            //PrintElectric.ExportToXls(pathname);
            PrintElectric.ShowPreview();
        }