API Reference
Class
WordHelpers
Provides helper methods for Word document manipulation.
Inheritance
- Object
- WordHelpers
Constructors
public WordHelpers() #Methods
public static Void ConvertDotXtoDocX(String templatePath, String outputPath) #Returns:
VoidConverts a DOTX template to a DOCX document. Based on: https://github.com/onizet/html2openxml/wiki/Convert-.dotx-to-.docx
Parameters
- templatePath System.String
- The path to the DOTX template file.
- outputPath System.String
- The path where the converted DOCX file will be saved.
public static Int32 GetNextSdtId(WordDocument document) #Returns:
Int32Provides the next available structured document tag identifier for the specified document. The allocator guarantees positive, unique identifiers within the document scope.
Parameters
- document OfficeIMO.Word.WordDocument
- Target document that owns the structured document tags.
Returns
A positive integer identifier that has not been used in the document.
Exceptions
ArgumentNullException– Thrown when document is null.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object