IXpsOMPageReference::SetStoryFragmentsResource method (xpsobjectmodel.h)

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

Syntax

HRESULT SetStoryFragmentsResource(
  [in] IXpsOMStoryFragmentsResource *storyFragmentsResource
);

Parameters

[in] storyFragmentsResource

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

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMDocumentStructureResource

IXpsOMPageReference

IXpsOMStoryFragmentsResource

XML Paper Specification