ITask.GetBlob (String, ref String) Method
Parameters
- fieldMnemonic
- string
The mnemonic of the WBS field you want to get the blob from. Can be either _Workbook, _Document, _MinuteWorkbook or a free WBS field with IWbsField.DataType set to WbsFieldDataType.AnyFile.
- fileName
- string
Returns the file name of the blob. This provides the information about the file type stored in the blob. In very rare cases, it's not possible to get the original name. But the file extension is always available. In such a case, a random name with the correct extension will be returned.
Return Value
byte[]The byte array which is the content of the blob.
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