Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.85 KB

Project.Application.VisualReportsView.md

File metadata and controls

65 lines (41 loc) · 1.85 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.VisualReportsView method (Project)
vbapj.chm2141
vbapj.chm2141
project-server
Project.Application.VisualReportsView
80742129-71eb-355d-1bb8-f64579eef344
06/08/2017
medium

Application.VisualReportsView method (Project)

Opens the specified Visual Reports template with the specified level of time.

Syntax

expression. VisualReportsView( _strVisualReportTemplateFile_, _PjVisualReportsDataLevel_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
strVisualReportTemplateFile Optional String Full path and name of template file.
PjVisualReportsDataLevel Optional Long The time level of data, determined automatically or specified from days to years . Can be one of the PjVisualReportsDataLevel constants. The default value is pjLevelAutomatic.

Return value

Boolean

Remarks

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).

Opening the template with a time level that is not supported by the data results in an error.

Example

The following example opens the "PCRTSK_U.VST" template for viewing.

Sub a() 
 Dim tf As Boolean 
 tf = Application.VisualReportsView("D:\Program Files\Microsoft Office\Office12\1033\PCRTSK_U.VST", pjLevelAutomatic) 
 If tf = True Then 
 MsgBox ("Template was viewed successfully") 
 Else 
 MsgBox ("Template was not viewed successfully") 
 End If 
End Sub

[!includeSupport and feedback]