Share via


Application.VisualReportsSaveDatabase Method

Project Developer Reference

Saves a Visual Reports database to the default directory or 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

Example

Following is an example of using The VisualReportsSaveDatabase method.

Visual Basic for Applications
  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

See Also