IXpsOMPackage1 interface

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.


The IXpsOMPackage1 interface has these methods.

Method Description
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.


Additional References

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



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