DOWNLOADFILE

Downloads a file to the local client computer.

Syntax

DOWNLOADFILE(fileName)

  • fileName - the name of the file to be downloaded - Value type: text

Remarks

  • Before DOWNLOADFILE can be executed successfully, a pdf file must have been created by the function PDFCREATE.

  • Calling this function uses the standard download processing of the browser to store the file on the local computer.

  • The function returns !ERROR in case that any error occurs (e.g. the maximum allowed file size is exceeded, or fileName is not a valid file name).

Examples

Clicking on the "Download" button creates a pdf file containing a screenshot of the page Page1. With the DOWNLOADFILE function, the pdf file is then downloaded to the client computer.