Main Content

unzipDOCXTemplate

Unzip zipped DOTX template file

    Description

    unzipDOCXTemplate(zippedTemplate) unzips the DOTX template specified by zippedTemplate into a subfolder of the folder that contains the zipped template. If zippedTemplate does not specify a file extension, the function assumes the extension is .dotx, the default extension for Microsoft® Word template files.

    example

    unzipDOCXTemplate(zippedTemplate,unzippedTemplateFolder) unzips the DOTX template specified by zippedTemplate into the directory specified by unzippedTemplateFolder.

    example

    Examples

    collapse all

    Unzip a zipped DOTX template called myTemplate.

    unzipDOCXTemplate("myTemplate.dotx");

    This example assumes that there is a zipped DOTX template called myTemplate in the current folder and a folder called H:\report_templates.

    unzipDOCXTemplate("myTemplate.dotx","H:\report_templates\myTemplate");
    

    Input Arguments

    collapse all

    Full path for the zipped DOTX template specified as a character vector or string scalar. If you do not include the file extension, the function assumes the extension is .dotx, the default extension for Word Template files.

    The folder to unzip template contents into specified as a character vector or string scalar.

    Version History

    Introduced in R2017b