Skip to content

Latest commit

 

History

History
118 lines (90 loc) · 3.24 KB

nn-xpsobjectmodel-ixpsomdocumentsequence.md

File metadata and controls

118 lines (90 loc) · 3.24 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NN:xpsobjectmodel.IXpsOMDocumentSequence
IXpsOMDocumentSequence (xpsobjectmodel.h)
The root object that has the XPS document content.
IXpsOMDocumentSequence
IXpsOMDocumentSequence interface [XPS Documents and Packaging]
IXpsOMDocumentSequence interface [XPS Documents and Packaging]
described
xps.ixpsomdocumentsequence
xpsobjectmodel/IXpsOMDocumentSequence
xps\ixpsomdocumentsequence.htm
xps
472095a4-ecd8-406a-97c2-1a34b4e5184a
12/05/2018
IXpsOMDocumentSequence, IXpsOMDocumentSequence interface [XPS Documents and Packaging], IXpsOMDocumentSequence interface [XPS Documents and Packaging],described, xps.ixpsomdocumentsequence, xpsobjectmodel/IXpsOMDocumentSequence
xpsobjectmodel.h
Windows
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps \| UWP apps]
XpsObjectModel.idl
Windows
19H1
IXpsOMDocumentSequence
xpsobjectmodel/IXpsOMDocumentSequence
c++
APIRef
kbSyntax
COM
xpsobjectmodel.h
IXpsOMDocumentSequence

IXpsOMDocumentSequence interface

-description

The root object that has the XPS document content.

-inheritance

The IXpsOMDocumentSequence interface inherits from IXpsOMPart. IXpsOMDocumentSequence also has these types of members:

-remarks

The code example that follows illustrates how to create an instance of this interface.

IXpsOMDocumentSequence    *newInterface;
IOpcPartUri               *partUri;

// Note the implicit requirement that CoInitializeEx 
//  has previously been called from this thread.

hr = CoCreateInstance(
    __uuidof(XpsOMObjectFactory),
    NULL,
    CLSCTX_INPROC_SERVER,
    _uuidof(IXpsOMObjectFactory),
    reinterpret_cast<LPVOID*>(&xpsFactory)
    );

if (SUCCEEDED(hr))
{
    hr = xpsFactory->CreatePartUri(partUriString, &partUri);
    
    if (SUCCEEDED(hr))
    {
        hr = xpsFactory->CreateDocumentSequence (partUri, &newInterface);

        if (SUCCEEDED(hr))
        {
            // use newInterface

            newInterface->Release();
        }
        partUri->Release();
    }
    xpsFactory->Release();
}
else
{
    // evaluate HRESULT error returned in hr
}

-see-also

IXpsOMObjectFactory::CreateDocumentSequence

IXpsOMPart

Interfaces

XML Paper Specification