#Description: Example code to insert a Table into a Word Document - using a SummaryTable.
#Author: Intersoft Systems Limited
#Version: 1.00
#Last Updated: 08/05/2017

Dim SummaryTable As ISSummaryTable

SummaryTable = finBL.CreateSummaryTable()
With SummaryTable
  .TableClass = iseSummaryTableClass.TabularData
  .AutoStripe = True
  .WidthHtml = "100%"

  ' Column Definitions
  With .Columns
    .AddDate("Date")
    .AddText("Text", 30)
    .AddCurrency("Value", 12)
  End With

  ' Underline Heading Row
  SummaryTable.Rows(0).WordDocumentOptions.SetBordersCell(iseWordDocumentSummaryTableBorder.Bottom, "black", 1)

  ' Add Rows
  With .Rows.Add.Cells()
    .AddDate(finBL.TimeZoneFunctions.GetCurrentDatabaseDate(), True)
    .AddText("Some Text")
    .AddCurrency(100)
  End With

  ' Options
  With .WordDocumentOptions
    .CellPadding = 2
    .CellVerticalAlignment = iseSummaryTableCellVerticalAlignment.Top
    .RepeatHeadingRowOnEachPage = True
    .SetBorders(iseWordDocumentSummaryTableBorder.All, "black", 1)
  End With
End With

wordDocumentBookmarks.SetContentSummaryTable("BookmarkName", SummaryTable)