## ExternalConnection::SetOdcFile(const U16String\&) method


Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.

```cpp
void Aspose::Cells::ExternalConnections::ExternalConnection::SetOdcFile(const U16String &value)
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [ExternalConnection](../)
* Namespace [Aspose::Cells::ExternalConnections](../../)
* Library [Aspose.Cells for C++](../../../)
## ExternalConnection::SetOdcFile(const char16_t*) method


Specifies the full path to external connection file from which this connection was created. If a connection fails during an attempt to refresh data, and reconnectionMethod=1, then the spreadsheet application will try again using information from the external connection file instead of the connection object embedded within the workbook.

```cpp
void Aspose::Cells::ExternalConnections::ExternalConnection::SetOdcFile(const char16_t *value)
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ExternalConnection](../)
* Namespace [Aspose::Cells::ExternalConnections](../../)
* Library [Aspose.Cells for C++](../../../)
