# PrintContext Type

> PrintContext type alias in the TX Sheet Control TypeScript API for Node.js, with its syntax, 4 properties and a TypeScript example.

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

---

Public type for PrintContext.

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.

### Syntax

```typescript
type PrintContext = Omit<PrintLayoutOptions, 'rowHeights'>;
```

### Members

#### Properties

| Property | Description |
|---|---|
| [date](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/date-property/llms-full.txt) | The date value of PrintContext. |
| [fileName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/filename-property/llms-full.txt) | The fileName value of PrintContext. |
| [filePath](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/filepath-property/llms-full.txt) | The filePath value of PrintContext. |
| [locale](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/locale-property/llms-full.txt) | The locale value of PrintContext. |

### Examples

Pass the PrintContext value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectPrintContextDate(printContext: Parameters<ServerSheetControl['setPrintContext']>[0]) {
    const value = printContext['date'];
    console.log('PrintContext.date', value);
}
```

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

- [PrintContext.date Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/date-property/llms-full.txt): PrintContext.date property in the TX Sheet Control TypeScript API for Node.js, with its type string | Date | undefined and a TypeScript example.
- [PrintContext.fileName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/filename-property/llms-full.txt): PrintContext.fileName property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [PrintContext.filePath Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/filepath-property/llms-full.txt): PrintContext.filePath property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.
- [PrintContext.locale Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/locale-property/llms-full.txt): PrintContext.locale property in the TX Sheet Control TypeScript API for Node.js, with its type string | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [PictureSource.mimeType Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/picturesource/mimetype-property/llms-full.txt)
- **Next:** [PrintContext.date Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/printcontext/date-property/llms-full.txt)
