CApplication.SendFile


static function SendFile

Prototype:

static function SendFile(FileName, Content, DialogTitle="Save file", FileType="All files|*;Images|*.jpg;")

Parameters

FileName
the recommended file name
Content
the content of the file
DialogTitle
the title of the dialog
FileType
a string containing the desired file types in the form "Display type|extension;Dysplay type2|extension;..."

Description:

Sends a file to the client. The use will be prompted to accept the file, and selects its name and location.

Return value:

Returns true if the file was accepted, or false if the user canceled the operation.