PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) Method

Definition

Informs the print task of the content to be printed.

public:
 virtual void SetSource(IPrintDocumentSource ^ source) = SetSource;
void SetSource(IPrintDocumentSource const& source);
public void SetSource(IPrintDocumentSource source);
function setSource(source)
Public Sub SetSource (source As IPrintDocumentSource)

Parameters

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

Applies to

See also