SaveAs (Method)

Applies To:

Connection object, MetaDataConnection object, Document object, WebClientDocument object

Description:

Saves documents or Interactive Reporting connection files (.oce) under another name or location.

Note:

Do not use ActiveDocument.SaveAs() in Interactive Reporting document files to be deployed in the EPM Workspace.

Syntax:

Expression.SaveAs(Filename As String)

Expression Required:

An expression that returns an object for these items:

Example:

This example shows how to save an Interactive Reporting document file using a different name:

var MyDocs = "c:\\Mydocs"
var MyName = "JavaScriptTest.bqy"
var MyFilename = MyDocs + "\\"+ MyName
ActiveDocument.SaveAs(MyFilename)