Beispiel #1
0
 public static Task SaveAsByTemplateAsync(this Stream stream, byte[] templateBytes, object value)
 {
     return(ExcelTemplateFactory.GetProvider(stream).SaveAsByTemplateAsync(templateBytes, value));
 }
Beispiel #2
0
 public static Task SaveAsByTemplateAsync(this Stream stream, string templatePath, object value)
 {
     return(ExcelTemplateFactory.GetProvider(stream).SaveAsByTemplateAsync(templatePath, value));
 }
Beispiel #3
0
 public static void SaveAsByTemplate(this Stream stream, byte[] templateBytes, object value, IConfiguration configuration = null)
 {
     ExcelTemplateFactory.GetProvider(stream, configuration).SaveAsByTemplate(templateBytes, value);
 }
Beispiel #4
0
 public static void SaveAsByTemplate(this Stream stream, byte[] templateBytes, object value)
 {
     ExcelTemplateFactory.GetProvider(stream).SaveAsByTemplate(templateBytes, value);
 }
Beispiel #5
0
 public static void SaveAsByTemplate(this Stream stream, string templatePath, object value)
 {
     ExcelTemplateFactory.GetProvider(stream).SaveAsByTemplate(templatePath, value);
 }
Beispiel #6
0
 public static async Task SaveAsByTemplateAsync(this Stream stream, byte[] templateBytes, object value, IConfiguration configuration = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     await ExcelTemplateFactory.GetProvider(stream, configuration).SaveAsByTemplateAsync(templateBytes, value, cancellationToken).ConfigureAwait(false);
 }