AMT Help Files

SENDATTACHMENT

Syntax Color Legend
Command
Mandatory parameter
Optional parameter
Mandatory keyword
Optional keyword

Syntax

SENDATTACHMENT (<Filename>)

Description

Send a file to the user.
The file set as parameter will be offered to the user, a save file dialogue will be opened in the client to save the file to a chosen location.

Diagram

Returned value type

None

Parameters

Parameter Description
Filename The filename, including absolute path, of the file to be sent to the user.

Remarks

File to be sent needs to be accessible by the file controller.

The SENDATTACHMENT command is intended to handle files up to 5 MB, larger files may impact the performance of your AMT environment.

Examples

sendattachment ('D:\Documents\Terms.pdf')
refresh ()
ROUTINE BTNEventOnClick(FieldName: String)
BEGIN_ROUTINE

  sendattachment(InvoicePdf)

END_ROUTINE

Return to

Commands

Contents