...
The DataBindingProperties
object can be used to change the behavior of how data is imported. For example, if we were importing multiple rows of data, we can use the DataBindingProperties.MaxRows
property to limit the number of rows that are imported. In this sample, we won't be changing any of the import properties, but we still need the DataBindingProperties
object to bind data.
5. Get the data and call {{ [ExcelTemplate.BindCellData()|ExcelTemplate.BindCellData(Object, String, DataBindingProperties)
] }} to bind the data to the data marker
...
In this sample, we're pulling the single value from the text box on the web form.
Since we're binding a single value, we use BindCellData()
and specify the data marker ID. Note that we need to pass the DataBindingProperties
object, even though none of the DataBindingProperties
are active.
6. Call ExcelTemplate.Process() to insert the data into the file
...