Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2.  In the method that will actually run the report, instantiate the ExcelTemplate object object.

Code Block
ExcelTemplate _xltXLT = new ExcelTemplate();

3. Open the template file with the ExcelTemplate.Open method.

Code Block

 XLT.Open(Page.MapPath("//templates//Part1_Financial_Template.xlsx"));

4. Create a DataBindingProperties object. Although we won't be changing any of the binding properties, a DataBindingProperties is a required parameter in all ExcelTemplate data binding methods.

Code Block

DataBindingProperties dataProps = XLT.CreateDataBindingProperties();

Data Binding

Post-Processing

...