RegisterCustomViewer method

Registers a Custom Viewer. See the Working with Custom Viewers topic for information on developing custom viewers.

Syntax


C++
HRESULT RegisterCustomViewer(
   BSTR
ViewerID,
   BSTR
Description,
   BSTR
ImplFile,
   VARIANT
saExtensions,
   ERUCustomDisplayMode
DefaultMode,
   IERUCustomViewer**
ppCustomViewer)
Scripting languages
Set NewCustomViewer = Object.RegisterCustomViewer(
   ViewerID as String,
   Description
as String,
   ImplFile
as String,
   saExtensions
as VARIANT,
   DefaultMode
as ERUCustomDisplayMode)

Parameters


ViewerID

Unique identifier for the new custom viewer in the form "ProviderCompany.ViewerName"

Description

Brief viewer description, which is displayed to administrators.

 ImplFile

The name of the file that implements the custom viewer. This file should be named in the same format as the ViewerID parameter, except that the dot (".") should be replaced with an underscore ("_"). For example, "ProviderCompany_ViewerName.asp"

saExtensions

A SAFEARRAY of file extensions (including ".") for which the viewer is invoked.

DefaultMode

The default ERUCustomDisplayMode for the viewer.

ppCustomViewer

Pointer to newly-created custom viewer object.

Return value


C++

The return code.

Scripting languages

A pointer to the newly-created custom viewer object.

 

Home

Applies to

IERUCustomViewerManager