Programattically initiates the user interface for printing content.
Syntax
Windows.Graphics.Printing.PrintManager.showPrintUIAsync().done( /* Your success and error handlers */ );
Parameters
This method has no parameters.
Return value
Type: IAsyncOperation<Boolean>
A Boolean value to indicate a TRUE for success or a FALSE for a failure.
Remarks
ShowPrintUIAsync is an asynchronous method and it is responsible for making your Windows Store app display the appropriate print window. Here is a JavaScript code snippet to show how it is used to display a print window:
// Function to process the print button click
function printButtonClick() {
Windows.Graphics.Printing.PrintManager.showPrintUIAsync();
}
In the preceeding snippet, a print window is displayed in the event handler for a button click. So the user sees a print window in response to their button click. To see complete listings for more printing scenarios using ShowPrintUIAsync, see Printing.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012