예제 #1
0
 public static ExcelRange WriteNumber(this ExcelRange rnge, decimal?number, string format = "#,##0.00  ")
 {
     rnge.Value = number;
     return(rnge.FormatNumber(format)
            .AlignRight());
 }
예제 #2
0
 public static ExcelRange WriteFormula(this ExcelRange rnge, string formula, string format = "#,##0.00  ")
 {
     rnge.Formula = formula;
     return(rnge.FormatNumber(format)
            .AlignRight());
 }
예제 #3
0
 public static ExcelRange WriteDate(this ExcelRange rnge, DateTime date, string format = "d MMM yyyy")
 {
     rnge.Formula = $"=DATE({date.Year},{date.Month},{date.Day})";
     return(rnge.FormatNumber(format)
            .AlignCenter());
 }