# PrintSettings Interface

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

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

---

Physical page and print settings. Explicit units avoid mixing pixels with paper measurements.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [area](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/area-property/llms-full.txt) | The area value of PrintSettings. |
| [fitToHeight](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittoheight-property/llms-full.txt) | The fitToHeight value of PrintSettings. |
| [fitToPage](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittopage-property/llms-full.txt) | The fitToPage value of PrintSettings. |
| [fitToWidth](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittowidth-property/llms-full.txt) | The fitToWidth value of PrintSettings. |
| [footer](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/footer-property/llms-full.txt) | The footer value of PrintSettings. |
| [gridlines](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/gridlines-property/llms-full.txt) | The gridlines value of PrintSettings. |
| [header](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/header-property/llms-full.txt) | The header value of PrintSettings. |
| [headings](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/headings-property/llms-full.txt) | The headings value of PrintSettings. |
| [margins](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/margins-property/llms-full.txt) | The margins value of PrintSettings. |
| [page](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/page-property/llms-full.txt) | The page value of PrintSettings. |
| [scale](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/scale-property/llms-full.txt) | The scale value of PrintSettings. |

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

function createPrintSettingsReport(book: 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 });

    const printSettings: PrintSettings = {
        page: { size: 'A4', orientation: 'landscape' },
        area: 'A1:D12',
        gridlines: false,
        fitToPage: true,
        fitToWidth: 1,
        fitToHeight: 0,
    };

    sheet.print.configure({ ...printSettings });
    return sheet;
}
```

### See Also

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

---

## In This Section

- [PrintSettings.area Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/area-property/llms-full.txt): PrintSettings.area property in the TX Sheet Control TypeScript API for the browser, with its type string | null | undefined and a TypeScript example.
- [PrintSettings.fitToHeight Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittoheight-property/llms-full.txt): PrintSettings.fitToHeight property in the TX Sheet Control TypeScript API for the browser, with its type number | undefined and a TypeScript example.
- [PrintSettings.fitToPage Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittopage-property/llms-full.txt): PrintSettings.fitToPage property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [PrintSettings.fitToWidth Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/fittowidth-property/llms-full.txt): PrintSettings.fitToWidth property in the TX Sheet Control TypeScript API for the browser, with its type number | undefined and a TypeScript example.
- [PrintSettings.footer Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/footer-property/llms-full.txt): PrintSettings.footer property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [PrintSettings.gridlines Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/gridlines-property/llms-full.txt): PrintSettings.gridlines property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [PrintSettings.header Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/header-property/llms-full.txt): PrintSettings.header property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [PrintSettings.headings Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/headings-property/llms-full.txt): PrintSettings.headings property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [PrintSettings.margins Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/margins-property/llms-full.txt): PrintSettings.margins property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [PrintSettings.page Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/page-property/llms-full.txt): PrintSettings.page property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [PrintSettings.scale Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/scale-property/llms-full.txt): PrintSettings.scale property in the TX Sheet Control TypeScript API for the browser, with its type number | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [PrintRect.y Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printrect/y-property/llms-full.txt)
- **Next:** [PrintSettings.area Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/printsettings/area-property/llms-full.txt)
