# SheetPrint Class

> SheetPrint class in the TX Sheet Control TypeScript API for Node.js: Worksheet print settings with explicit units and validated page geometry.

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

---

Worksheet print settings with explicit units and validated page geometry.

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Constructor

```typescript
new SheetPrint(sheet: Worksheet): SheetPrint
```

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `sheet` | `Worksheet` | No | Value matching sheet's declared type and the owning object's validation rules. |

Returns: `SheetPrint`.

### Members

#### Properties

| Property | Description |
|---|---|
| [settings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/settings-property/llms-full.txt) | The settings value of SheetPrint. |
| [sheet](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/sheet-property/llms-full.txt) | The sheet value of SheetPrint. |

#### Methods

| Method | Description |
|---|---|
| [configure](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/configure-method/llms-full.txt) | Apply page size, margins, print area and header/footer settings. |

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

function createSheetPrintReport(control: ServerSheetControl) {
    const book = control.workbook;
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('October invoice');
    sheet
        .cell('A1')
        .format({
            fontFamily: 'Liberation Sans',
            fontSize: 16,
            bold: true,
            textColor: '#ffffff',
            fillColor: '#163b63',
        });

    sheet.columns.at(0).setWidth({ pixels: 240 });
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });
    sheet.print.configure({ orientation: 'landscape', paperSize: 9 });
    return sheet;
}
```

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/llms-full.txt)
- [Exporting Worksheets to PDF](https://docs.textcontrol.com/tx-sheet-control/pdf/export/llms-full.txt)

---

## In This Section

- [SheetPrint.configure Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/configure-method/llms-full.txt): SheetPrint.configure method in the TX Sheet Control TypeScript API for Node.js: Apply page size, margins, print area and header/footer settings.
- [SheetPrint.settings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/settings-property/llms-full.txt): SheetPrint.settings property in the TX Sheet Control TypeScript API for Node.js, with its type PageSetup and a TypeScript example.
- [SheetPrint.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/sheet-property/llms-full.txt): SheetPrint.sheet property in the TX Sheet Control TypeScript API for Node.js, with its type Worksheet and a TypeScript example.

---

## Nearby

- **Previous:** [SheetCollection.workbook Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetcollection/workbook-property/llms-full.txt)
- **Next:** [SheetPrint.configure Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/sheetprint/configure-method/llms-full.txt)
