ITask.StoreBlob (String, Byte(), String) Method
Parameters
- fieldMnemonic
- string
The mnemonic of the WBS field you want to write the blob to. Can be either _Workbook, _Document, _MinuteWorkbook or a free WBS field with IWbsField.DataType set to WbsFieldDataType.AnyFile.
- blob
- byte[]
A byte array representing the file you want to store.
- fileName
- string
The file name of the blob, whether a full path or just a file name. This provides the information about the file type stored in the blob.
If set to null reference (Nothing in Visual Basic) or an empty string, then a default name will be used. If it's possible to imply the file extension, as in case of _Document, _Workbook or _MinuteWorkbook fields, the correct extension will be appended. Otherwise, no file extension will be added.
Exception type | Condition |
---|---|
A problem occurred. |
The WBS fields with blob are one of the following:
_Workbook: The Excel workbook hosted in the WBS row which is used to read values from the WBS row.
_Document: The word document hosted in the WBS row (which is to be merged with calling word document).
_MinuteWorkbook: The Excel workbook hosted in the WBS row which is used to read and write values from/to minute rows.
A free WBS field with: IWbsField.DataType set to WbsFieldDataType.AnyFile