Main Content

本页采用了机器翻译。点击此处可查看英文原文。

unzipDOCXTemplate

解压压缩的 DOTX 模板文件

    说明

    示例

    unzipDOCXTemplate(zippedTemplate)zippedTemplate 指定的 DOTX 模板解压到包含压缩模板的文件夹的子文件夹中。如果 zippedTemplate 没有指定文件扩展名,该函数将假定扩展名是 .dotx,即 Microsoft® Word 模板文件的默认扩展名。

    示例

    unzipDOCXTemplate(zippedTemplate,unzippedTemplateFolder)zippedTemplate 指定的 DOTX 模板解压到 unzippedTemplateFolder 指定的目录中。

    示例

    全部折叠

    解压名为 myTemplate 的压缩 DOTX 模板。

    unzipDOCXTemplate("myTemplate.dotx");

    此示例假设当前文件夹中有一个名为 myTemplate 的压缩 DOTX 模板和一个名为 H:\report_templates 的文件夹。

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

    输入参数

    全部折叠

    压缩的 DOTX 模板的完整路径,指定为字符向量或字符串标量。如果不包含文件扩展名,该函数将假定扩展名是 .dotx,即 Word 模板文件的默认扩展名。

    将模板内容解压到的文件夹,指定为字符向量或字符串标量。

    版本历史记录

    在 R2017b 中推出