Main Content

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

close

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

关闭文档

说明

close(docObj) 关闭文档。一旦文档关闭,您就无法再向其中添加内容。关闭文档将输出任何剩余的内容,例如剩余的模板文本。

示例

示例

全部展开

关闭 myReport 文档。

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

append(myReport,Paragraph('This is an introduction'));

close(myReport);
rptview('mydoc','html');

输入参数

全部展开

要关闭的文档,指定为 mlreportgen.dom.Document 对象。

版本历史记录

在 R2014b 中推出