EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

PrintManager.ShowPrintUIAsync | showPrintUIAsync method

Programattically initiates the user interface for printing content.

Syntax


public static IAsyncOperation<bool> ShowPrintUIAsync()

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 (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Printing
Windows::Graphics::Printing [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Graphics.Printing
Windows::Graphics::Printing [C++]

Metadata

Windows.winmd

See also

Printing
PrintManager

 

 

Mostrar:
© 2015 Microsoft