PrintQueue::CreateXpsDocumentWriter Method (Double%, Double%)


Creates an XpsDocumentWriter object with the specified dimensions.

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

static XpsDocumentWriter^ CreateXpsDocumentWriter(
	double% width,
	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