Application.VisualReportsNewTemplate 方法 (Project)
为 Microsoft Excel 或 Microsoft Visio 创建“可视报表”模板。
语法
expression。 VisualReportsNewTemplate
( _PjVisualReportsTemplateType_
, _PjVisualReportsCubeType_
, _ReportAlLFields_
, _PjVisualReportsDataLevel_
)
expression:表示 Application 对象的变量。
参数
名称 | 必需/可选 | 数据类型 | 说明 |
---|---|---|---|
PjVisualReportsTemplateType | 可选 | Long | 模板类型。 可以是 PjVisualReportsTemplateType 常量之一。 默认值为 pjExcel 。 |
PjVisualReportsCubeType | 可选 | Long | 多维数据集类型。 可以是 PjVisualReportsCubeType 常量之一。 默认值为 pjTaskTP 。 |
ReportAlLFields | 可选 | Boolean | 如此 ,所有非自定义字段是否包含在报表中。 |
PjVisualReportsDataLevel | 可选 | Long | 数据级别。 可以是 PjVisualReportsDataLevel 常量之一。 默认值为 pjLevelAutomatic 。 |
返回值
Boolean
说明
将 ReportAllFields 参数设置为 True ,则会降低性能。
PjVisualReportsDataLevel 参数指定时间分段的数据可访问的级别。 例如,如果 pjLevelMonths 指定 (月数),则它不能访问 pjLevelDays (天)。
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。