title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.VisualReportsSaveDatabase method (Project) |
vbapj.chm2138 |
|
project-server |
|
edcbaff5-beb1-ba11-fb65-ec26a24ab23d |
06/08/2017 |
medium |
Saves a Visual Reports database to the default directory or to a specified directory.
expression. VisualReportsSaveDatabase
( _strNamePath_
, _PjVisualReportsDataLevel_
)
expression A variable that represents an Application object.
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. |
Boolean
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).
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]