Writing an Expression to Download a Static Document

The DocumentDownload function can be used to generate and download a PDF document based on a static document item.

The function's syntax is as follows:

DocumentDownload( InstructionType, DocumentKeyword, ModelName, ActionKeyword );

The ModelName and ActionKeyword parameters are optional.

InstructionType is an integer or string that determines which of the available instructions is activated by the function.

DocumentKeyword is a string containing the keyword of the static document item you want to use.

ModelName is a string containing the keyword of the model or sub-model that hosts the chosen documexxnt item. If this argument is omitted or given an empty string, the function will attempt to locate the document in the main model.

ActionKeyword is a string containing the keyword of an action that will run after the document has been downloaded.