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.

Methods

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.

Remarks

Additional References

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

http://msdn.microsoft.com/en-us/library/dd372618(v=VS.85).aspx

Requirements

   
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