コード例 #1
0
 public static DataTable loadPublishersFromDisk()
 {
     try
     {
         publishers = NPOIExcelUtilities.ExcelSheetToDataTable("all-publishers.xlsx", 0);
     }
     catch (Exception ex)
     {
         // throw ex;
         publishers = new DataTable();
     }
     return(publishers);
 }
コード例 #2
0
 public static DataTable loadAssignmentsFromDisk()
 {
     try
     {
         assignments = NPOIExcelUtilities.ExcelSheetToDataTable("all-assignments.xlsx", 0);
     }
     catch (Exception ex)
     {
         // throw ex;
         assignments = new DataTable();
     }
     return(assignments);
 }
コード例 #3
0
        public static DataTable loadAllAddressesFromDisk()
        {
            DataTable result = null;

            if (File.Exists("all-addresses.xlsx"))
            {
                result = NPOIExcelUtilities.ExcelSheetToDataTable("all-addresses.xlsx", 0);
            }
            else
            {
                result = new DataTable();
            }
            return(result);
        }