# StreamType Enumeration

> StreamType enumeration in the TX Sheet Control JavaScript API for the browser, with its 7 values and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Enumeration
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > StreamType Enumeration
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/streamtype/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/streamtype/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/streamtype/llms-full.txt

---

Public enumeration for StreamType.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

ES module import: `import { StreamType } from '@txtextcontrol/tx-sheet-control';`.

### Members

| Member | Value |
|---|---|
| `SpreadsheetML` | `StreamType.SpreadsheetML` |
| `InternalWorkbookFormat` | `StreamType.InternalWorkbookFormat` |
| `PDF` | `StreamType.PDF` |
| `CSV` | `StreamType.CSV` |
| `XML` | `StreamType.XML` |
| `JSON` | `StreamType.JSON` |
| `OpenDocumentSpreadsheet` | `StreamType.OpenDocumentSpreadsheet` |

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

```javascript
import { StreamType } from '@txtextcontrol/tx-sheet-control';

console.log(StreamType.PDF);
```

### See Also

- [JavaScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

### OpenDocument Spreadsheet

Select this value for binary `.ods` input and output.

```javascript
const ods = await editor.save(StreamType.OpenDocumentSpreadsheet);
```

---

## Nearby

- **Previous:** [Spreadsheet.workbook Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/workbook-property/llms-full.txt)
- **Next:** [Table Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/table/llms-full.txt)
