Freigeben über


IXpsOMObjectFactory::CreateStoryFragmentsResource method

Creates an IXpsOMStoryFragmentsResource interface that provides access to the content of the resource stream of a page's StoryFragments part.

Syntax

HRESULT CreateStoryFragmentsResource(
  [in]          IStream                      *acquiredStream,
  [in]          IOpcPartUri                  *partUri,
  [out, retval] IXpsOMStoryFragmentsResource **storyFragmentsResource
);

Parameters

  • acquiredStream [in]
    The read-only IStream interface to be associated with this StoryFragments resource.

    Important  Treat this stream as a Single-Threaded Apartment (STA) object; do not re-enter it.

     

  • partUri [in]
    The IOpcPartUri interface that contains the part name to be assigned to this resource.

  • storyFragmentsResource [out, retval]
    A pointer to the new IXpsOMStoryFragmentsResource interface.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors.

Return code Description
S_OK

The method succeeded.

E_POINTER

acquiredStream, partUri, or storyFragmentsResource is NULL.

 

Remarks

The StoryFragments part of a page contains the XML markup that describes the structure of the portions of one or more stories that are associated with a single fixed page. Some of the document contents that might be described by the XML markup in a StoryFragments part include the story's tables and paragraphs that are found on the page.

The XML markup in the DocumentStructure and StoryFragments parts is described in the XML Paper Specification.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

IXpsOMObjectFactory

IXpsOMDocumentStructureResource

IXpsOMStoryFragmentsResource

XPS Document Errors

XML Paper Specification