# FromDocumentState Method

## Overloads

| [FromDocumentState(DocumentState)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.QMSAPI.Support.Conversion.FromDocumentState.htm#PIX_QMSAPI_Support_Conversion_FromDocumentState_PIX_QMSAPI_DataObjects_Enums_DocumentState_) |  |  |
| --- | --- | --- |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.QMSAPI.Support.Conversion.FromDocumentState.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.QMSAPI.Support.Conversion.FromDocumentState.htm)

## FromDocumentState(DocumentState)

### Declaration

```

          public static eDocumentState FromDocumentState(DocumentState state)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [DocumentState](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.QMSAPI.DataObjects.Enums.DocumentState.htm) | state |  |

### Returns

| Type | Description |
| --- | --- |
| [eDocumentState](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.eDocumentState.htm) |  |