PrintTaskSourceRequestedArgs.SetSource | setSource method

Applies to Windows only

Informs the print task of the content to be printed.

Syntax


printTaskSourceRequestedArgs.setSource(source);

Parameters

source

Type: IPrintDocumentSource

A pointer to the IPrintDocumentSource interface.

Remarks

Content source information for the print task can come from either HTML (via MSApp.GetHtmlPrintDocumentSource) or from XAML (via the XAML PrintDocument.DocumentSource). Or you can create your own method to provide content source information to the print task. For information about how to create your own method, see the Direct2D printing sample. Here is a JavaScript code snippet to show how to set the document source:



// Set the document source for a print task
Windows.Graphics.Printing.PrintTaskSourceRequestedArgs.SetSource(source);



Requirements

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

Direct2D printing sample
IPrintDocumentSource
MSApp.GetHtmlPrintDocumentSource
PrintDocument.DocumentSource
PrintTaskSourceRequestedArgs

 

 

Show:
© 2014 Microsoft