# CsvLoadOptions Interface

> CsvLoadOptions interface in the TX Sheet Control TypeScript API for the browser: CSV input uses double-quote escaping and accepts CRLF, LF or CR record endings.

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

---

CSV input uses double-quote escaping and accepts CRLF, LF or CR record endings.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [decimalSeparator](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/decimalseparator-property/llms-full.txt) | Decimal separator used by numeric inference; defaults to period. Thousands separators are not inferred. |
| [delimiter](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/delimiter-property/llms-full.txt) | One non-quote, non-newline delimiter; defaults to comma. Use semicolon for common European CSV files. |
| [inferTypes](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/infertypes-property/llms-full.txt) | Infer finite numbers and booleans in CSV and untyped XML fields. JSON strings remain strings. Default true. |
| [maxCells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxcells-property/llms-full.txt) | Maximum rectangular cell count, including blanks. Defaults to 1,000,000. |
| [maxColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxcolumns-property/llms-full.txt) | Maximum imported columns. Defaults to 16,384. |
| [maxFileBytes](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxfilebytes-property/llms-full.txt) | Maximum encoded input bytes; defaults to 32 MiB. |
| [maxRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxrows-property/llms-full.txt) | Maximum imported rows, including generated headers. Defaults to 1,048,576. |
| [sheetName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/sheetname-property/llms-full.txt) | Name of the imported worksheet. Defaults to Sheet1. |

### 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 CsvLoadOptions } from '@txtextcontrol/tx-sheet-control';

async function createCsvLoadOptionsReport(book: Workbook) {
    const input = 'Customer;Amount\nMüller;125,5';
    const options: CsvLoadOptions = {
        sheetName: 'Orders',
        inferTypes: true,
        maxFileBytes: 1048576,
        maxRows: 1000,
        maxColumns: 20,
        maxCells: 20000,
        delimiter: ';',
        decimalSeparator: ',',
    };

    await book.load(input, StreamType.CSV, options);

    const sheet = book.sheets.at(0);
    sheet.range('A1:B1').format({ bold: true });
    return await book.save(StreamType.SpreadsheetML);
}
```

### 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

- [CsvLoadOptions.decimalSeparator Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/decimalseparator-property/llms-full.txt): CsvLoadOptions.decimalSeparator property in the TX Sheet Control TypeScript API for the browser: Decimal separator used by numeric inference.
- [CsvLoadOptions.delimiter Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/delimiter-property/llms-full.txt): CsvLoadOptions.delimiter property in the TX Sheet Control TypeScript API for the browser: One non-quote, non-newline delimiter; defaults to comma.
- [CsvLoadOptions.inferTypes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/infertypes-property/llms-full.txt): CsvLoadOptions.inferTypes property in the TX Sheet Control TypeScript API for the browser: Infer finite numbers and booleans in CSV and untyped XML fields.
- [CsvLoadOptions.maxCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxcells-property/llms-full.txt): CsvLoadOptions.maxCells property in the TX Sheet Control TypeScript API for the browser: Maximum rectangular cell count, including blanks.
- [CsvLoadOptions.maxColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxcolumns-property/llms-full.txt): CsvLoadOptions.maxColumns property in the TX Sheet Control TypeScript API for the browser: Maximum imported columns. Defaults to 16,384.
- [CsvLoadOptions.maxFileBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxfilebytes-property/llms-full.txt): CsvLoadOptions.maxFileBytes property in the TX Sheet Control TypeScript API for the browser: Maximum encoded input bytes; defaults to 32 MiB.
- [CsvLoadOptions.maxRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/maxrows-property/llms-full.txt): CsvLoadOptions.maxRows property in the TX Sheet Control TypeScript API for the browser: Maximum imported rows, including generated headers.
- [CsvLoadOptions.sheetName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/sheetname-property/llms-full.txt): CsvLoadOptions.sheetName property in the TX Sheet Control TypeScript API for the browser: Name of the imported worksheet. Defaults to Sheet1.

---

## Nearby

- **Previous:** [createPrintLayout Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/createprintlayout-function/llms-full.txt)
- **Next:** [CsvLoadOptions.decimalSeparator Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/decimalseparator-property/llms-full.txt)
