IXpsOMPackage1 interface (xpsobjectmodel_1.h)

Inherits from IXpsOMPackage.

Provides support for:

Detecting the format/type of an XPS package loaded in the XPS OM.

Saving an in-memory XPS OM package to an MSXPS or OpenXPS package byte stream or file.

Inheritance

The IXpsOMPackage1 interface inherits from IXpsOMPackage. IXpsOMPackage1 also has these types of members:

Methods

The IXpsOMPackage1 interface has these methods.

 
IXpsOMPackage1::GetDocumentType

Gets the document type of the data that was used to initialize this package. This method is used to determine whether a document is the XPS or OpenXPS type. For more information, see XPS Documents.
IXpsOMPackage1::WriteToFile1

Writes an XPS OM to a file as an XPS package of a specified type.
IXpsOMPackage1::WriteToStream1

Writes an XPS OM to a stream as an XPS package of a specified type.

Remarks

Additional References

The base interface is defined and documented in Windows 7 SDK.

IXpsOMPackage interface

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_1.h

See also

IXpsOMPackage