Condividi tramite


IXpsOMPageReference::SetStoryFragmentsResource method

Sets the IXpsOMStoryFragmentsResource interface pointer of the StoryFragments resource to be assigned to the page.

Syntax

HRESULT SetStoryFragmentsResource(
  [in] IXpsOMStoryFragmentsResource *storyFragmentsResource
);

Parameters

  • storyFragmentsResource [in]
    A pointer to the IXpsOMStoryFragmentsResource interface of the StoryFragments part resource to be assigned to the page. If an IXpsOMStoryFragmentsResource interface has been set, a NULL pointer will release it.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Return code Description
S_OK

The method succeeded.

XPS_E_NO_CUSTOM_OBJECTS

storyFragmentsResource does not point to a recognized interface implementation. Custom implementation of XPS Document API interfaces is not supported.

 

Remarks

The StoryFragments part of a page contains the XML markup that describes 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 of 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

IXpsOMPageReference

IXpsOMDocumentStructureResource

IXpsOMStoryFragmentsResource

XML Paper Specification