PrintQueue.CreateXpsDocumentWriter Method (Double%, Double%)
.NET Framework 3.5
Creates an XpsDocumentWriter object with the specified dimensions.
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.XpsDocumentWriterAn 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.