PrepareAttachmentList

[Top]  [Chapter]  [Previous]  [Next]

Declaration

function PrepareAttachmentList(Mode: Integer; const Path: WideString): Integer;

Description

When You want to save to HTML You can activate the automatic creation of file attachments for embedded images.

 

Use Mode=0 to disable this mode.

 

Use mode=1 to enable this mode and also use the parameter path to set the directory, where the files should be stored.

 

Use mode=2 to get the count of attached images

 

You can use GetAttachment to read each single name.

 

Use mode=3 to delete all files which are listed in the attachment list.

 

The provided path (directory) will be used to save the images.

It is not necessary to use the format string imgpath:"..." in the save method unless You want to override the path.


[prepareattachmentlist.htm]    Copyright © 2007 by WPCubed GmbH