Table of contents
Collapse the table of content
Expand the table of content

Application.VisualReportsNewTemplate Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Creates a Visual Reports template for Microsoft Excel or Microsoft Visio.


expression. VisualReportsNewTemplate( ** PjVisualReportsTemplateType, ** PjVisualReportsCubeType, ** ReportAlLFields, ** PjVisualReportsDataLevel )

expression A variable that represents an Application object.


NameRequired/OptionalData TypeDescription
PjVisualReportsTemplateTypeOptionalLongTemplate type. Can be one of the PjVisualReportsTemplateType constants. Default is pjExcel.
PjVisualReportsCubeTypeOptionalLongCube type. Can be one of the PjVisualReportsCubeType constants. Default is pjTaskTP.
ReportAlLFieldsOptionalBooleanIf True, all noncustom fields are included in the report.
PjVisualReportsDataLevelOptionalLongData level. Can be one of the PjVisualReportsDataLevel constants. Default is pjLevelAutomatic.

Return Value



Setting the ReportAllFields parameter to True can degrade performance.

The PjVisualReportsDataLevel parameter specifies the level to which the timephased data can be accessed. For example, if pjLevelMonths (months) is specified, it not possible to access pjLevelDays (days).

© 2018 Microsoft