# TabularSaveOptions Interface

> TabularSaveOptions interface in the TX Sheet Control TypeScript API for the browser, with 5 properties and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > TabularSaveOptions Interface
- **711 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/llms-full.txt

---

Exports one worksheet's values, including calculated formula results, without changing the document.

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

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [hasHeaderRow](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/hasheaderrow-property/llms-full.txt) | For JSON records and XML, use the first selected row as field names. Default true; false generates Column1, etc. |
| [maxCells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/maxcells-property/llms-full.txt) | Maximum selected rectangular cell count, including blanks. Defaults to 1,000,000. |
| [maxFileBytes](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/maxfilebytes-property/llms-full.txt) | Maximum encoded output bytes; defaults to 32 MiB. |
| [range](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/range-property/llms-full.txt) | Inclusive A1 rectangle. Defaults to A1 through the last populated cell; formatting alone does not extend it. |
| [sheetName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/sheetname-property/llms-full.txt) | Worksheet name; defaults to the active worksheet. |

### Examples

Use a fresh workbook. Create and format the sample data, apply this API and retain the returned document or result in your application. In the browser pass editor.workbook; in Node.js pass the server control.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';
import { StreamType, type TabularSaveOptions } from '@txtextcontrol/tx-sheet-control';

async function createTabularSaveOptionsReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('A1:C2').setValues([
        ['Customer', 'Amount', 'Total'],
        ['Müller', 125.5, null],
    ]);

    sheet.cell('C2').setFormula('=B2*1.19');

    const options: TabularSaveOptions = {
        sheetName: 'Sheet1',
        range: 'A1:C2',
        hasHeaderRow: true,
        maxCells: 10000,
        maxFileBytes: 1048576,
    };

    return await book.save(StreamType.XML, options);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [CSV, XML and JSON Data](https://docs.textcontrol.com/tx-sheet-control/document-processing/tabular-data/llms-full.txt)

---

## In This Section

- [TabularSaveOptions.hasHeaderRow Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/hasheaderrow-property/llms-full.txt): TabularSaveOptions.hasHeaderRow property in the browser TypeScript API: For JSON records and XML, use the first selected row as field names.
- [TabularSaveOptions.maxCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/maxcells-property/llms-full.txt): TabularSaveOptions.maxCells property in the TX Sheet Control TypeScript API for the browser: Maximum selected rectangular cell count, including blanks.
- [TabularSaveOptions.maxFileBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/maxfilebytes-property/llms-full.txt): TabularSaveOptions.maxFileBytes property in the TX Sheet Control TypeScript API for the browser: Maximum encoded output bytes; defaults to 32 MiB.
- [TabularSaveOptions.range Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/range-property/llms-full.txt): TabularSaveOptions.range property in the browser TypeScript API: Inclusive A1 rectangle. Defaults to A1 through the last populated cell.
- [TabularSaveOptions.sheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/sheetname-property/llms-full.txt): TabularSaveOptions.sheetName property in the TX Sheet Control TypeScript API for the browser: Worksheet name; defaults to the active worksheet.

---

## Nearby

- **Previous:** [TabularLoadOptions.sheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularloadoptions/sheetname-property/llms-full.txt)
- **Next:** [TabularSaveOptions.hasHeaderRow Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tabularsaveoptions/hasheaderrow-property/llms-full.txt)
