# createPrintLayout Function

> createPrintLayout function in the TX Sheet Control TypeScript API for the browser, with the return type PrintLayout and a TypeScript example.

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

---

Public function for createPrintLayout.

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

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

### Syntax

```typescript
createPrintLayout(workbook: WorkbookInstance, options?: PrintLayoutOptions): PrintLayout
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `workbook` | `WorkbookInstance` | No | Value matching workbook's declared type and the owning object's validation rules. |
| `options` | `PrintLayoutOptions \| undefined` | Yes | Supported settings for this operation; omitted settings retain documented defaults. |

### Return Value

`PrintLayout`.

### Examples

Use this public value with the application package shown below. File and font inputs are application-owned resources, not automatically downloaded product data.

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

function useCreatePrintLayout(workbook: Workbook) {
    const result = createPrintLayout(workbook);
    console.log(result);
}
```

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

---

## Nearby

- **Previous:** [createHttpDataProvider Function](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/createhttpdataprovider-function/llms-full.txt)
- **Next:** [CsvLoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/csvloadoptions/llms-full.txt)
