Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

AddFile – PB Docs 2022 – PowerBuilder Library

AddFile – PB Docs 2022

AddFile

PowerScript function

Description

Specifies a file to add as attachment of a PDF document.

Applies to

PDFAttachment object in Objects and Controls

Syntax

Argument

Description

localFilePath

The path and file name of the local file to add.

Return value

Long. Returns 1 if it succeeds and -1 if an error occurs. For the
full list of error codes, see Error
Codes
.

Usage

Call the function to add the files in the specified folder as
attachments of the PDF document. The isRecursive argument controls whether
to also add the files in the sub folders.

Examples

This example add all the files, including the files in the sub
folders, in the “D:image” folder as attachments to the newly-created PDF
document.

See also

AddFolder

GetCount

RemoveAll


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x