ActiveDocument object
Note: | The SaveToRepositoryAs(Method) is only available for an Interactive Reporting document deployed in Interactive Reporting Web Client. |
Uploads and saves as repository objects (data models, standard queries, and standard queries with reports) in an Interactive Reporting document (BQY) for version-controlled distribution to networked Interactive Reporting users.
Expression.SaveToRepositoryAs(String Filename, [optional] String Filedesc, [optional] Boolean bOverride)
Filename—(Required)
Specify the file name consists of two parts: the Interactive Reporting document (BQY) path and name. The path is in the form of “/dir1/dir2/” (full path), where the leading “/” represents the Root directory or “dir1/dir2” (relative path) to the currently open Interactive Reporting document directory. The default path for the Interactive Reporting document path is the current directory. For example, you might specify: “/my directory/sub directory/doc.bqy”, “doc.bqy” or “directory/doc.bqy”.
String Filedesc—(Optional) Specify a file description for the Interactive Reporting document to be saved to the repository. If the description exists, then it is added to the new document or replace sthe description of the existing document. The Boolean Override argument must be true to specify a file description.
Boolean Override—(Optional) Specify if the Interactive Reporting document file name can be overridden. If the file name exists, the description is added to the new Interactive Reporting document or replaces the description of the existing Interactive Reporting document file name. This argument is only valid if the Boolean Override argument is true. If the override is false, no file description is applied.
This example shows how to save mybqy.bqy to the repository. Note that myfolder is in the current open directory.
ActiveDocument.SaveToRepositoryAs("myfolder/mybqy.bqy", "salesquery", true)