AddAssociatedFileFromString
Associated files, attachments, memory input
Description
Embeds the binary bytes in Source and registers one reusable document-level associated file
Syntax
Delphi
Function AddAssociatedFileFromString(Const Source: AnsiString; Const DisplayName, MIMEType, Description, Relationship: WideString): Integer;DLL
int DLAddAssociatedFileFromString(int InstanceID, const char* Source, int SourceLength, const wchar_t* DisplayName, const wchar_t* MIMEType, const wchar_t* Description, const wchar_t* Relationship)Return value
Returns a nonzero embedded-file handle on success or 0 on failure
Remarks
The DLL length parameter preserves zero bytes and must be greater than zero
Use AddAssociatedFileFromVariant for ActiveX byte arrays