Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 1.69 KB

Project.Application.VisualReportsSaveDatabase.md

File metadata and controls

63 lines (40 loc) · 1.69 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.VisualReportsSaveDatabase method (Project)
vbapj.chm2138
vbapj.chm2138
project-server
Project.Application.VisualReportsSaveDatabase
edcbaff5-beb1-ba11-fb65-ec26a24ab23d
06/08/2017
medium

Application.VisualReportsSaveDatabase method (Project)

Saves a Visual Reports database to the default directory or to a specified directory.

Syntax

expression. VisualReportsSaveDatabase( _strNamePath_, _PjVisualReportsDataLevel_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
strNamePath Optional String Name and full path of the location to which to save the database file (.mbd).
PjVisualReportsDataLevel Optional Long Save data level. Can be one of the PjVisualReportsDataLevel constants. Default 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).

Example

Following is an example of using The VisualReportsSaveDatabase method.

Sub a() 
 Dim tf As Boolean 
 tf = Application.VisualReportsSaveDatabase("C:\mydb.mdb", pjLevelAutomatic) 
 If tf = True Then 
 MsgBox ("Database saved successfully") 
 Else 
 MsgBox ("Database wasn't saved successfully") 
 End If 
End Sub

[!includeSupport and feedback]