---
title: "printShowingPrintPanel:"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/printshowingprintpanel:"
---

# printShowingPrintPanel:

Prints the current document’s data.

## Declaration

```occ
- (void) printShowingPrintPanel:(BOOL) flag;
```

## Discussion

Discussion Overridden by subclasses to print the current document’s (the receiver’s) data; if flag is true, the implementation should first display the Print panel. This method is typically invoked by printDocument: with an argument of true. The default implementation does nothing. If there is any printing information other than that encoded in the receiver’s NSPrintInfo object, subclasses should get it here.

## See Also

### Methods

- [dataRepresentationOfType:](appkit/nsdocument/datarepresentationoftype:.md)
- [fileAttributesToWriteToFile:ofType:saveOperation:](appkit/nsdocument/fileattributestowritetofile:oftype:saveoperation:.md)
- [fileName](appkit/nsdocument/filename.md)
- [fileWrapperRepresentationOfType:](appkit/nsdocument/filewrapperrepresentationoftype:.md)
- [initWithContentsOfFile:ofType:](appkit/nsdocument/initwithcontentsoffile:oftype:.md)
- [initWithContentsOfURL:ofType:](appkit/nsdocument/initwithcontentsofurl:oftype:.md)
- [loadDataRepresentation:ofType:](appkit/nsdocument/loaddatarepresentation:oftype:.md)
- [loadFileWrapperRepresentation:ofType:](appkit/nsdocument/loadfilewrapperrepresentation:oftype:.md)
- [readFromFile:ofType:](appkit/nsdocument/readfromfile:oftype:.md)
- [readFromURL:ofType:](appkit/nsdocument/readfromurl:oftype:.md)
- [revertToSavedFromFile:ofType:](appkit/nsdocument/reverttosavedfromfile:oftype:.md)
- [revertToSavedFromURL:ofType:](appkit/nsdocument/reverttosavedfromurl:oftype:.md)
- [runModalPageLayoutWithPrintInfo:](appkit/nsdocument/runmodalpagelayoutwithprintinfo:.md)
- [saveToFile:saveOperation:delegate:didSaveSelector:contextInfo:](appkit/nsdocument/savetofile:saveoperation:delegate:didsaveselector:contextinfo:.md)
- [saveToURL:ofType:forSaveOperation:error:](appkit/nsdocument/savetourl:oftype:forsaveoperation:error:.md)
