Method UpdateLabels
UpdateLabels(WordDocument)
Word's Update Labels: every label of the document's first table that starts with a NEXT field takes a
copy of the first label's content after that field. One undoable edit.
public static DocumentEdit UpdateLabels(this WordDocument document)
Parameters
documentWordDocumentThe merge sheet.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
documentis null.- InvalidOperationException
The document has no table, or its first label is not a cell.