API Reference

Class

WordHelpers

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers static

Provides helper methods for Word document manipulation.

Inheritance

  • Object
  • WordHelpers

Methods

public static Void ConvertDotxToDocx(String templatePath, String outputPath) #
Returns: Void

Converts a DOTX template to a DOCX document. Based on: https://github.com/onizet/html2openxml/wiki/Convert-.dotx-to-.docx

Parameters

templatePath System.String requiredposition: 0
The path to the DOTX template file.
outputPath System.String requiredposition: 1
The path where the converted DOCX file will be saved.
public static Void RemoveHeadersAndFooters(String filename, params WordHeaderFooterType[] types) #
Returns: Void

Removes headers and footers from the file at filename. When no types are provided all headers and footers are removed.

Parameters

filename System.String requiredposition: 0
Path to the document.
types OfficeIMO.Word.WordHeaderFooterType[] requiredposition: 1
Header or footer types to remove.