SplitDocx.Save method

On this page

Runs the split and delivers the resulting parts to the paths derived from outputPath. No copy of the source document is written.

public void Save(string outputPath)
parameterdescription
outputPathThe path the parts are delivered to. When its file name carries the ‘{0}’ placeholder, the placeholder is replaced with the part number, so ‘c:\output\part_{0}.docx’ yields ‘part_1.docx’, ‘part_2.docx’ and so on; otherwise the part number is appended to the file name, so ‘c:\output\result.docx’ yields ‘result_1.docx’, ‘result_2.docx’ and so on in that same directory. A relative path is resolved against the current working directory.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown when outputPath is null or empty.

See Also

On this page