# DocumentState Enum

Namespace: [PIX.QMSAPI.DataObjects.Enums](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.Enums.htm)  
Assembly: PIX.dll

Represents the various document states used when creating a new QDSDocumentSession.

## Syntax

```
public enum DocumentState
```

### Fields

| Name | Description |
| --- | --- |
| Closed | Document is closed. |
| CouldNotGetSlot | There are no available QVB processes. |
| CouldNotOpenDocument | Could not open document. |
| NoAttemptToOpenHasBeenMade | No attempt to open document. |
| OpenedSuccessfully | The document opened successfully. |
| OtherError | Other error. |

### Extension Methods

[ApiFilter.FilterFor<DocumentState>(Nullable<ApiVersion>)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.ApiFiltering.ApiFilter.FilterFor.htm#PIX_ApiFiltering_ApiFilter_FilterFor__1___0_System_Nullable_PIX_ApiVersion__)