# ServerSheetControl Class

> ServerSheetControl class in the Node.js TypeScript API: An isolated workbook, shared document API and file filters, without an editor or DOM.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > ServerSheetControl Class
- **1245 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/llms-full.txt

---

An isolated workbook, shared document API and file filters, without an editor or DOM.

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

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

### Constructor

```typescript
new ServerSheetControl(options?: ServerSheetControlOptions): ServerSheetControl
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `options` | `ServerSheetControlOptions \| undefined` | Yes | Supported settings for this operation; omitted settings retain documented defaults. |

Returns: `ServerSheetControl`.

### Members

#### Properties

| Property | Description |
|---|---|
| [licenseInfo](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/licenseinfo-property/llms-full.txt) | Immutable signed metadata; readable even after trial expiry or disposal. |
| [options](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/options-property/llms-full.txt) | The options value of ServerSheetControl. |
| [userName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/username-property/llms-full.txt) | Current runtime comment author, shared with this control's workbook. |
| [workbook](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/workbook-property/llms-full.txt) | The workbook value of ServerSheetControl. |

#### Methods

| Method | Description |
|---|---|
| [batch](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/batch-method/llms-full.txt) | Apply serializable compatibility commands atomically. |
| [destroy](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/destroy-method/llms-full.txt) | Dispose this isolated document. |
| [getFontCatalog](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getfontcatalog-method/llms-full.txt) | Discovers the deployed families used by the editor and PDF export. Each call checks for file changes. |
| [getFontFile](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getfontfile-method/llms-full.txt) | Reads a catalogued font for HTTP hosting without exposing trusted server paths. |
| [getPdfInfo](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getpdfinfo-method/llms-full.txt) | Metadata for the last completed PDF export. |
| [getPrintLayout](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getprintlayout-method/llms-full.txt) | Read font-measured print geometry asynchronously. |
| [getWarnings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getwarnings-method/llms-full.txt) | Read merge/export warning strings. |
| [getXlsxWarnings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getxlsxwarnings-method/llms-full.txt) | Read retained XLSX feature notices. |
| [invokeWorkbook](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/invokeworkbook-method/llms-full.txt) | Invoke an allowlisted document operation by name. |
| [load](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/load-method/llms-full.txt) | Loads workbook bytes or CSV/XML/JSON text/bytes as an atomic document replacement. Native workbook JSON is not a tabular interchange format. |
| [merge](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/merge-method/llms-full.txt) | Apply configured bindings to this document. |
| [refreshFonts](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/refreshfonts-method/llms-full.txt) | Re-reads deployed fonts even if their filesystem timestamps were preserved. |
| [save](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/save-method/llms-full.txt) | Saves an isolated revision as .xlsx, .txwb, PDF, CSV, tabular XML or tabular JSON without changing workbook metadata. |
| [saveText](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/savetext-method/llms-full.txt) | Saves CSV, XML or JSON text with the same settings, snapshot, events and UTF-8 byte limits as save. A generated CSV BOM is omitted from the string; supplied settings are not modified. |
| [setPrintContext](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/setprintcontext-method/llms-full.txt) | Set shared header/footer field context. |

### Examples

Return a PDF byte array from an isolated server control. Configure a signed license before creating the server; Developer and OEM server exports have no licensing branding.

```typescript
import { ServerSheetControl, StreamType } from '@txtextcontrol/tx-sheet-control-server';

async function createInvoicePdf() {
    const control = new ServerSheetControl();

    try {
        const sheet = control.workbook.sheets.at(0);
        sheet.range('B8:B9').setValues([[120], [80]]);
        sheet.cell('B10').setFormula('=SUM(B8:B9)');
        return await control.save(StreamType.PDF);
    } finally {
        control.destroy();
    }
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [ServerSheetControl.batch Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/batch-method/llms-full.txt): ServerSheetControl.batch method in the TX Sheet Control TypeScript API for Node.js: Apply serializable compatibility commands atomically.
- [ServerSheetControl.destroy Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/destroy-method/llms-full.txt): ServerSheetControl.destroy method in the Node.js TypeScript API: Dispose this isolated document. Includes the syntax and a TypeScript example.
- [ServerSheetControl.getFontCatalog Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getfontcatalog-method/llms-full.txt): ServerSheetControl.getFontCatalog method in the TX Sheet Control TypeScript API for Node.js: Discovers the deployed families used by the editor and PDF export.
- [ServerSheetControl.getFontFile Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getfontfile-method/llms-full.txt): ServerSheetControl.getFontFile method in the Node.js TypeScript API: Reads a catalogued font for HTTP hosting without exposing trusted server paths.
- [ServerSheetControl.getPdfInfo Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getpdfinfo-method/llms-full.txt): ServerSheetControl.getPdfInfo method in the TX Sheet Control TypeScript API for Node.js: Metadata for the last completed PDF export.
- [ServerSheetControl.getPrintLayout Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getprintlayout-method/llms-full.txt): ServerSheetControl.getPrintLayout method in the TX Sheet Control TypeScript API for Node.js: Read font-measured print geometry asynchronously.
- [ServerSheetControl.getWarnings Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getwarnings-method/llms-full.txt): ServerSheetControl.getWarnings method in the TX Sheet Control TypeScript API for Node.js: Read merge/export warning strings.
- [ServerSheetControl.getXlsxWarnings Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/getxlsxwarnings-method/llms-full.txt): ServerSheetControl.getXlsxWarnings method in the TX Sheet Control TypeScript API for Node.js: Read retained XLSX feature notices.
- [ServerSheetControl.invokeWorkbook Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/invokeworkbook-method/llms-full.txt): ServerSheetControl.invokeWorkbook method in the TX Sheet Control TypeScript API for Node.js: Invoke an allowlisted document operation by name.
- [ServerSheetControl.licenseInfo Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/licenseinfo-property/llms-full.txt): ServerSheetControl.licenseInfo property in the Node.js TypeScript API: Immutable signed metadata. Includes the syntax and a TypeScript example.
- [ServerSheetControl.load Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/load-method/llms-full.txt): ServerSheetControl.load method in the Node.js TypeScript API: Loads workbook bytes or CSV/XML/JSON text/bytes as an atomic document replacement.
- [ServerSheetControl.merge Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/merge-method/llms-full.txt): ServerSheetControl.merge method in the TX Sheet Control TypeScript API for Node.js: Apply configured bindings to this document.
- [ServerSheetControl.options Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/options-property/llms-full.txt): ServerSheetControl.options property in the Node.js TypeScript API, with its type Readonly<ServerSheetControlOptions> and a TypeScript example.
- [ServerSheetControl.refreshFonts Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/refreshfonts-method/llms-full.txt): ServerSheetControl.refreshFonts method in the Node.js TypeScript API: Re-reads deployed fonts even if their filesystem timestamps were preserved.
- [ServerSheetControl.save Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/save-method/llms-full.txt): ServerSheetControl.save method in the Node.js TypeScript API, with the return type Promise<Uint8Array<ArrayBufferLike>> and a TypeScript example.
- [ServerSheetControl.saveText Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/savetext-method/llms-full.txt): ServerSheetControl.saveText method in the TX Sheet Control TypeScript API for Node.js, with the return type Promise<string> and a TypeScript example.
- [ServerSheetControl.setPrintContext Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/setprintcontext-method/llms-full.txt): ServerSheetControl.setPrintContext method in the TX Sheet Control TypeScript API for Node.js: Set shared header/footer field context.
- [ServerSheetControl.userName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/username-property/llms-full.txt): ServerSheetControl.userName property in the TX Sheet Control TypeScript API for Node.js: Current runtime comment author, shared with this control's workbook.
- [ServerSheetControl.workbook Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/workbook-property/llms-full.txt): ServerSheetControl.workbook property in the TX Sheet Control TypeScript API for Node.js, with its syntax and a TypeScript example.

---

## Nearby

- **Previous:** [ServerPdfOptions.dashboardPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serverpdfoptions/dashboardpage-property/llms-full.txt)
- **Next:** [ServerSheetControl.batch Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/serversheetcontrol/batch-method/llms-full.txt)
