Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XpsDocument Class

Provides a Package that holds the content of an XPS document.

Namespace: System.Windows.Xps.Packaging
Assembly: ReachFramework (in reachframework.dll)

public class XpsDocument : XpsPartBase, IDisposable
public class XpsDocument extends XpsPartBase implements IDisposable
public class XpsDocument extends XpsPartBase implements IDisposable
You cannot use this managed class in XAML.

An XpsDocument contains a FixedDocumentSequence comprised of one or more FixedDocument elements.

The XpsDocument constructor is passed a reference to a Package for writing, storing, and reading the content elements of the document.

A new empty XPS Package is created by using the Package constructor.

An existing XPS Package is opened by using the Package.Open method.

A FixedDocumentSequence root is added to an empty XPS Package by calling the AddFixedDocumentSequence method.

PrintTicket elements with printer information and control can also be associated with the FixedDocumentSequence, or on individual FixedDocument and FixedPage elements that are stored in the XpsDocument.

For more information about XPS see the XML Paper Specification (XPS) available for download at http://go.microsoft.com/fwlink/?LinkID=65761.

For a list of XPS related example programs, see the following topics:

System.Object
   System.Windows.Xps.Packaging.XpsPartBase
    System.Windows.Xps.Packaging.XpsDocument
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.