PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) Method

Definition

Informs the print task of the content to be printed.

public : void SetSource(IPrintDocumentSource source)
void SetSource(IPrintDocumentSource source) const;
public void SetSource(IPrintDocumentSource source)
Public Sub SetSource(source As IPrintDocumentSource)
printTaskSourceRequestedArgs.setSource(source);

Parameters

source
IPrintDocumentSource IPrintDocumentSource 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.

See also