---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/loadoptions
---

# LoadOptions

## Overview

`LoadOptions` is a class in Aspose.Cells FOSS for C++.

Specifies how a workbook should be loaded.

This class declares 12 methods for LoadOptions objects in C++ programs.
Available methods include: `GetLoadFormat`, `GetPreserveUnsupportedParts`, `GetStrictMode`, `GetTryRepairPackage`, `GetTryRepairXml`, `GetWarningCallback`, `SetLoadFormat`, `SetPreserveUnsupportedParts`, `SetStrictMode`, `SetTryRepairPackage`, `SetTryRepairXml`, `SetWarningCallback`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetLoadFormat()` → `LoadFormat` | Gets or sets the expected input format. |
| `SetLoadFormat(value: LoadFormat)` | Sets the load format value. |
| `GetStrictMode()` → `bool` | Gets or sets whether loading should reject ambiguous repairs. |
| `SetStrictMode(value: bool)` | Sets the strict mode value. |
| `GetTryRepairPackage()` → `bool` | Gets or sets whether package-level repairs are allowed during load. |
| `SetTryRepairPackage(value: bool)` | Sets the try repair package value. |
| `GetTryRepairXml()` → `bool` | Gets or sets whether XML-level repairs are allowed during load. |
| `SetTryRepairXml(value: bool)` | Sets the try repair xml value. |
| `GetPreserveUnsupportedParts()` → `bool` | Gets or sets whether unsupported parts should be preserved when possible. |
| `SetPreserveUnsupportedParts(value: bool)` | Sets the preserve unsupported parts value. |
| `GetWarningCallback()` → `std::shared_ptr<IWarningCallback>` | Gets or sets a warning callback that receives recoverable-load diagnostics. |
| `SetWarningCallback(value: std::shared_ptr<IWarningCallback>)` | Sets the warning callback value. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)