IXpsOMPage::SetDictionaryResource method

Sets the IXpsOMRemoteDictionaryResource interface pointer of the page's remote dictionary resource.

Syntax

HRESULT SetDictionaryResource(
  [in] IXpsOMRemoteDictionaryResource *remoteDictionaryResource
);

Parameters

  • remoteDictionaryResource [in]
    The IXpsOMRemoteDictionaryResource interface pointer to be set for the page. A NULL value releases the previously assigned dictionary resource.

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.

XPS_E_NO_CUSTOM_OBJECTS

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

 

Remarks

Setting this value will cause GetDictionaryLocal to return NULL.

Most recent method called Object that is returned in resourceDictionary by GetDictionary Object that is returned in resourceDictionary by GetDictionaryLocal Object that is returned in remoteDictionaryResource by GetDictionaryResource

SetDictionaryLocal

The local dictionary resource that is set by SetDictionaryLocal.

The local dictionary resource that is set by SetDictionaryLocal.

NULL pointer.

SetDictionaryResource (this method)

The shared dictionary in the dictionary resource that is set by SetDictionaryResource.

NULL pointer.

The remote dictionary resource that is set by SetDictionaryResource.

Neither SetDictionaryLocal nor SetDictionaryResource has been called yet.

NULL pointer.

NULL pointer.

NULL pointer.

 

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

IXpsOMPage

IXpsOMRemoteDictionaryResource

XPS Document Errors

XML Paper Specification