# StreamType Enumeration

> StreamType enumeration in the Angular package: SpreadsheetML, InternalWorkbookFormat, PDF, CSV, XML, JSON and OpenDocumentSpreadsheet, with an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Enumeration
- **Path:** TX Sheet Control > API Reference > TypeScript API > Angular > StreamType Enumeration
- **458 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/streamtype/llms-full.txt

---

Public enumeration for StreamType.

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

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

### 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 the Angular component export method after its ready output.

```typescript
import { StreamType } from '@txtextcontrol/tx-sheet-control/angular';
import type { TXSheetControlComponent } from '@txtextcontrol/tx-sheet-control/angular';

async function exportInvoice(component: TXSheetControlComponent): Promise<Uint8Array> {
    return component.save(StreamType.SpreadsheetML);
}
```

### See Also

- [TypeScript Angular API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/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:** [SpreadsheetOptions.highlightDependents Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/spreadsheetoptions/highlightdependents-property/llms-full.txt)
- **Next:** [TXSheetControlComponent Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/angular/txsheetcontrolcomponent/llms-full.txt)
