 | ICommenceDatabaseGetImageFieldToFile Method |
Copies the image field identified by the named Category, Item, and Field to the specified Filename.
Only bitmap (.BMP) format image fields are currently supported.
Filename must be a fully qualified path including the drive letter (e.g. c:\tmp\data.bmp).
If the file does not exist, Commence will create it; the drive and directory, however, must already exist.
If the file exists, it will be overwritten. It is the client’s responsibility to perform the necessary file cleanup.
If the image field is blank, no file is written.
Namespace:
Vovin.CmcLibNet.Database
Assembly:
Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntaxbool GetImageFieldToFile(
string categoryName,
string itemName,
string fieldName,
string fileName
)
Function GetImageFieldToFile (
categoryName As String,
itemName As String,
fieldName As String,
fileName As String
) As Boolean
Parameters
- categoryName
- Type: SystemString
Commence category name - itemName
- Type: SystemString
Commence item name - fieldName
- Type: SystemString
Commence imagefield name - fileName
- Type: SystemString
fully qualified filename
Return Value
Type:
Booleantrue on success, inspect
GetLastError on failure.
See Also