Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetDictionaryResource

IXpsOMCanvas::SetDictionaryResource method

Sets the IXpsOMRemoteDictionaryResource interface pointer of the remote dictionary resource.

Syntax


HRESULT SetDictionaryResource(
  [in] IXpsOMRemoteDictionaryResource *remoteDictionaryResource
);

Parameters

remoteDictionaryResource [in]

The IXpsOMRemoteDictionaryResource interface of the remote dictionary resource. A NULL pointer releases any 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 codeDescription
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

After calling this method, GetDictionaryLocal returns a NULL pointer in the resourceDictionary parameter.

Most recent method calledObject 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 that is set by SetDictionaryLocal.

The local dictionary 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

IXpsOMCanvas
IXpsOMDictionary
XPS Document Errors
XML Paper Specification

 

 

Community Additions

ADD
Show:
© 2015 Microsoft