Page tree

Versions Compared

Key

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

...

Vbnet
8
8

Imports SoftArtisans.OfficeWriter.ExcelWriter
...
Dim XLT As New ExcelTemplate()
XLT.Open(Page.MapPath("templates\Hello World.xlsx"))
Dim DataProps As DataBindingProperties = XLT.CreateDataBindingProperties()
Dim value As String = DataValueBox.Text.Trim()
XLT.BindCellData(value, "DataValue", DataProps)
XLT.Process()
XLT.Save(Page.Response, "Output.xlsx", False)

Downloads

You can download the Hello World sample code (C# or VB) to see the finished product.code for the hello world tutorial as a visual studio solution.