---
title: "printWindow(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/printwindow(_:)"
---

# printWindow(_:)

Runs the Print panel, and if the user chooses an option other than canceling, prints the window (its frame view and all subviews).

## Declaration

```swift
func printWindow(_ sender: Any?)
```

## Parameters

- `sender`: The message’s sender.

## See Also

### Printing Windows

- [dataWithEPS(inside:)](appkit/nswindow/datawitheps(inside:).md)
- [dataWithPDF(inside:)](appkit/nswindow/datawithpdf(inside:).md)
