Page tree

Versions Compared

Key

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

...

Exception
ArgumentException
ArgumentException

Introducedin
8.4
8.4
Exception
SAException
SAException

SetRepeatBlock will throw this exception if the bookmark has been set to be removed.

Remarks

A repeat block is a fragment in the template document that will be repeated for each row in a data source. In the template document, repeat blocks are defined by Word bookmarks that contain merge fields.

You can call SetRepeatBlock several times for a single instance of WordTemplate. The repeat block specified by the parameter bookmark must exist in the template.

If you pass an empty DataSet to SetRepeatBlock - by either setting maxRows to 0 or passing an empty DataSet - WordWriter will not include the specified repeat block in the generated Word file.

...