ExternalResourceHandler

ExternalResourceHandler class

Receives every external resource (a remote image, a linked document, a style sheet) that a template document or data reference, before the resource is requested. Assign an instance to ExternalResourceHandler.

public class ExternalResourceHandler

Constructors

Name Description
ExternalResourceHandler() The default constructor.

Methods

Name Description
virtual OnLoading(ExternalResourceLoadingArgs) Called before an external resource is loaded. Set Skipped to allow or deny the resource, or set Data to provide its content instead of requesting it.

Remarks

The handler is called for resources referenced by a template document (for example, images of an HTML template, linked images and INCLUDEPICTURE fields of a Word template) and for URIs that template expressions of image and doc tags evaluate to.

The handler is called on the thread that assembles a document.

See Also