Home
SaveAsProject
This function converts the interactive operations of a report author into a text file which can be edited. Since it supports interactive operations, it is not expected to be used very often with scripting. Thus, it is only included in the documentation for completeness.

Syntax:

SaveAsProject, filename

Parameters:

filename – the file name to be used

Examples:

SaveAsProject,Project2

This example shows the command that would cause the currently active project to be saved as a new project called ‘Project2’ and stored in the user’s project directory.

Comments:

As a script item, this function will not be commonly used. It is included here for completeness of the documentation. This creates or overwrites a file in the user’s project directory (which was specified in that user’s variables file). All the script commands that were initially used when the project was opened, as well as any interactive updates from the user interface, are written to the file. The file format is text and is easily editable in Visual Studio or Notepad or any text editor.

When such a project is later opened, the script lines execute one by one. This is how fresh data is dynamically retrieved and recalculated from an outside source.

 
< Prev   Next >

Reference