PrintTaskSourceRequestedArgs.SetSource(IPrintDocumentSource) Method
Definition
Important
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);
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.