viewStringAsAttachment method: Utility class

Syntax

viewStringAsAttachment(String, FileName, ViewAttachment)

Description

Use this method to transform the given string into an attachment file that is sent to the browser.

Parameters

Parameter Description

String

Specifies the specifies the contents of the attachment file as a string.

FileName

Specifies the attachment file name as a string.

ViewAttachment

Specifies the as a Boolean value whether the attachment is to be viewed directly or detached for download.

Returns

None.