Main Content

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

open

类: mlreportgen.dom.Document
命名空间: mlreportgen.dom

打开文档

说明

示例

open(docObj) 打开一个文档以追加内容。

示例

全部展开

import mlreportgen.dom.*;
myReport = Document('myDoc','html');

open(myReport);

输入参数

全部展开

要打开的文档,指定为 mlreportgen.dom.Document 对象。

提示

  • 打开文档后,您不能再更改其生成的文档类型或模板。

  • 如果文档尚未打开,则文档的 append 方法将打开该文档。因此,您很少需要使用 open 方法。

版本历史记录

在 R2014b 中推出