Share via


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.

When to implement

Never.

Members

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

  • Methods

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.

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

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

XpsObjectModel_1.h

IDL

XpsObjectModel.idl

Library

None

See also

IXpsOMPackage