Condividi tramite


Interfaccia IXpsOMDocumentSequence (xpsobjectmodel.h)

Oggetto radice con contenuto del documento XPS.

Ereditarietà

L'interfaccia IXpsOMDocumentSequence eredita da IXpsOMPart. IXpsOMDocumentSequence include anche questi tipi di membri:

Metodi

L'interfaccia IXpsOMDocumentSequence include questi metodi.

 
IXpsOMDocumentSequence::GetDocuments

Ottiene un puntatore all'interfaccia IXpsOMDocumentCollection, che contiene i documenti specificati nella sequenza di documenti.
IXpsOMDocumentSequence::GetOwner

Ottiene un puntatore all'interfaccia IXpsOMPackage che contiene la sequenza di documenti.
IXpsOMDocumentSequence::GetPrintTicketResource

Ottiene l'interfaccia IXpsOMPrintTicketResource per il ticket di stampa a livello di processo assegnato alla sequenza di documenti.
IXpsOMDocumentSequence::SetPrintTicketResource

Imposta la risorsa ticket di stampa a livello di processo per la sequenza di documenti.

Commenti

L'esempio di codice seguente illustra come creare un'istanza di questa interfaccia.


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
}

Requisiti

Requisito Valore
Client minimo supportato Windows 7, Windows Vista con SP2 e Aggiornamento della piattaforma per Windows Vista [app desktop | App UWP]
Server minimo supportato Windows Server 2008 R2, Windows Server 2008 con SP2 e Platform Update per Windows Server 2008 [app desktop | App UWP]
Piattaforma di destinazione Windows
Intestazione xpsobjectmodel.h

Vedi anche

IXpsOMObjectFactory::CreateDocumentSequence

IXpsOMPart

Interfacce

XML Paper Specification