Version

WordDocumentWriterExceptionReason Enumeration

Constants which identify the reason an exception was thrown by the WordDocumentWriter class.
Syntax
'Declaration
 
Public Enum WordDocumentWriterExceptionReason 
   Inherits System.Enum
public enum WordDocumentWriterExceptionReason : System.Enum 
Members
MemberDescription
CellNotClosedA table cell was opened, but was not properly closed.
CellNotClosedTableClosedA table was closed, but closure of a previously opened table cell is pending.
CellNotOpenAn attempt was made to close a table cell when there is currently no open cell.
CellOpenSectionStartedAn attempt was made to define a section when a table cell was open.
DocumentClosureErrorAn exception was thrown during the course of closing a document. The inner exception contains more specific information about the error.
DocumentNotOpenA write method was called before the document was opened.
FooterWriterErrorAn exception was thrown during the course of writing content to a footer section part. The inner exception contains more specific information about the error.
HeaderFooterWriterClosureErrorAn exception was thrown during the course of closing a header or footer writer. The inner exception contains more specific information about the error.
HeaderFooterWriterNotClosedThe document writer was closed, but closure of a header/footer writer is still pending.
HeaderFooterWriterNotOpenedThe document writer was closed, but a header/footer writer that was previously created was never opened.
HeaderWriterErrorAn exception was thrown during the course of writing content to a header section part. The inner exception contains more specific information about the error.
NestedCellAn attempt was made to add a table cell when one is already open in the same table.
NestedParagraphAn attempt was made to start a paragraph when one is already open.
NestedRowAn attempt was made to add a table row when one is already open in the same table.
NestedTableAn attempt was made to start a table when one is already open.
NoneUsed for variable initialization.
ParagraphNotClosedA previously opened paragraph was not closed.
ParagraphNotClosedSectionStartedA new section was started before all paragraphs were closed.
ParagraphNotClosedTableCellStartedA new table cell was started before all paragraphs were closed.
ParagraphNotClosedTableRowStartedA new table row was started before all paragraphs were closed.
ParagraphNotClosedTableStartedA new table was started before all paragraphs were closed.
ParagraphNotOpenAn attempt was made to add content such as a text run, hyperlink, or picture when there is currently no open paragraph.
RowClosedNoCellAn attempt was made to close a table row that has no table cells.
RowNotClosedA table row was opened, but was not properly closed.
RowNotClosedTableClosedA table was closed, but closure of a previously opened table row is pending.
RowNotOpenAn attempt was made to add content to a table row or close a table row when there is currently no open row.
RowOpenSectionStartedAn attempt was made to define a section when a table row was open.
TableNotClosedA previously opened table was not closed.
TableNotOpenAn attempt was made to add content such as a row or cell when there is currently no open table.
TableOpenSectionStartedAn attempt was made to define a section when a table was open.
WriterErrorThe XML writer used to serialize the content is in an error state.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also