Creating an add-in – Kofax DOKuStar Validation User Manual

Page 74

Advertising
background image

DOKuStar Validation Programming Manual

Page

70

Creating an Add-In

An add-in for DOKuStar Validation is always an

ActiveX Control

. You can write such an ActiveX Control in

any programming language. In our example we use Visual Basic.

In Visual Basic use the

New Project

command of the

File

menu and choose

ActiveX Control

from the

appearing

New Project

dialog box:

Now choose

References

from the

Project

menu. In the

References

to dialog box select the entry

ODT

DOKuStar DataSet … Type Library

(of the actual installed version) to be able to use the add-in

functionality:

Name the project

ValiTour

and add a new class module

MyValidation

to the project. Change the property

Instancing

of the class

MyValidation

from

PublicNotCreatable

to

MultiUse

. This is important;

otherwise the add-in will not work.

There is now one new function:

Private Sub IAddIn_Initialize(ByVal App As DOKuStarDataset.IApplication)

Advertising