...
3. Pass the existing ExcelApplication
and Workbook
to the ExcelTemplate
object using ExcelTemplate.Open(ExcelApplication, Workbook)
.
Code Block |
---|
xlt.Open(xla, wb); |
4. Although not necessary, it may be useful to set ExcelTemplate.RemoveExtraDataMarkers
to true
. This will tell ExcelWriter to ignore any data markers that are not bound to data sets. This is helpful if you are adding the data binding calls iterativelyto the code one at a time.
Code Block |
---|
xlt.RemoveExtraDataMarkers = true; |
...