Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrintQueue.CreateXpsDocumentWriter Method (Double, Double)


Creates an XpsDocumentWriter object with the specified dimensions.

Namespace:   System.Printing
Assembly:  System.Printing (in System.Printing.dll)

public static XpsDocumentWriter CreateXpsDocumentWriter(
	ref double width,
	ref double height


Type: System.Double

The width of the XPS document.

Type: System.Double

The height of the XPS document.

Return Value

Type: System.Windows.Xps.XpsDocumentWriter

An XpsDocumentWriter that writes to an XPS stream. This can be null.

This method displays a PrintDialog requiring input from the user. If the user cancels or closes the dialog, the return value is null. As a consequence, the return value must be checked for null by your application.

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft