This topic has not yet been rated - Rate this topic

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
)

Parameters

width
Type: System.Double%

The width of the XPS document.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.