Task Source Requested Args. Set Source(IPrintDocumentSource) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
Public Sub SetSource (source As IPrintDocumentSource)
A pointer to the IPrintDocumentSource interface.
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.