File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . IO ;
3
+ using ClosedXML . Excel ;
4
+
5
+ namespace ClosedXML . Report
6
+ {
7
+ public interface IXLTemplate : IDisposable
8
+ {
9
+ public IXLWorkbook Workbook { get ; }
10
+
11
+ public XLGenerateResult Generate ( ) ;
12
+
13
+ public void AddVariable ( object value ) ;
14
+
15
+ public void AddVariable ( string alias , object value ) ;
16
+
17
+ public void SaveAs ( string file ) ;
18
+
19
+ public void SaveAs ( string file , SaveOptions options ) ;
20
+
21
+ public void SaveAs ( string file , bool validate , bool evaluateFormulae = false ) ;
22
+
23
+ public void SaveAs ( Stream stream ) ;
24
+
25
+ public void SaveAs ( Stream stream , SaveOptions options ) ;
26
+
27
+ public void SaveAs ( Stream stream , bool validate , bool evaluateFormulae = false ) ;
28
+ }
29
+ }
Original file line number Diff line number Diff line change 3
3
using ClosedXML . Report . Options ;
4
4
using System ;
5
5
using System . Collections ;
6
- using System . Collections . Generic ;
7
6
using System . Data ;
8
7
using System . IO ;
9
8
using System . Linq ;
10
9
using System . Reflection ;
11
10
12
11
namespace ClosedXML . Report
13
12
{
14
- public class XLTemplate : IDisposable
13
+ public class XLTemplate : IXLTemplate
15
14
{
16
15
private readonly RangeInterpreter _interpreter ;
17
16
private readonly bool _disposeWorkbookWithTemplate ;
You can’t perform that action at this time.
0 commit comments