Kofax DOKuStar Validation Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Accessoires pour ordinateurs Kofax DOKuStar Validation. Kofax DOKuStar Validation User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 109
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
DOKuStar Validation for Ascent Capture
Programming Manual
Océ Document Technologies GmbH
Vue de la page 0
1 2 3 4 5 6 ... 108 109

Résumé du contenu

Page 1 - Programming Manual

DOKuStar Validation for Ascent Capture Programming Manual Océ Document Technologies GmbH

Page 2

DOKuStar Validation for Ascent Capture Page • 6 So, when you plan to copy the scripting code from one system to another, proceed as follows: - ex

Page 3 - Contents

DOKuStar Validation for Ascent Capture Page • 96 DOKuStar Validation is opened, and you can modify your scripting code for the batch class you sel

Page 4

DOKuStar Validation for Ascent Capture Page • 97 You can now test your code with real loaded data. You can also add changes to your code. When you

Page 5 - Introduction

DOKuStar Validation for Ascent Capture Page • 98 Not Restore Old Contents When a scripting routine returns False in the OnFieldChanging event, th

Page 6 - The VBA Studio

DOKuStar Validation for Ascent Capture Page • 99 Display Multi-Line Status Texts Sometimes it might be necessary to display more than one line of

Page 7

DOKuStar Validation for Ascent Capture Page • 100 Check All Fields Before Closing the Batch When the user closes a batch, you might want to check

Page 8 - Insert:

DOKuStar Validation for Ascent Capture Page • 101 Check if the Last Field is Reached When the user leaves the last field of the last document in t

Page 9

DOKuStar Validation for Ascent Capture Page • 102 Merge Table Rows The following example merges two table rows into one. The corresponding columns

Page 10 - Export File…:

DOKuStar Validation for Ascent Capture Page • 103 Private Sub mergeZones(firstFld As Field, secondFld As Field) Dim firstSrcInfo As ImageSourc

Page 11 - The Document Model

DOKuStar Validation for Ascent Capture Page • 104 Changing the Color of Documents Sometimes it may be necessary to inform the validation operator,

Page 12

DOKuStar Validation for Ascent Capture Page • 105 Private Sub colorDoc(doc As Document, bnOK As Boolean) Dim lngRed As Long Dim lngGreen A

Page 13

DOKuStar Validation for Ascent Capture Page • 7 The Document Model Overview In order to access fields, values, documents, etc., it is important to

Page 14

DOKuStar Validation for Ascent Capture Page • 8 Here is the source code for this example: Dim WithEvents Amount As FieldType Private Sub Applica

Page 15

DOKuStar Validation for Ascent Capture Page • 9 Before getting more into the details, here is a second way of solving the same problem: Dim WithE

Page 16

DOKuStar Validation for Ascent Capture Page • 10 Relation to the Ascent Capture Definition There are some relations between the document model and

Page 17 - Table issues

DOKuStar Validation for Ascent Capture Page • 11 Ascent Capture Field Types can have value lists; if so, the user input is also checked against th

Page 18

DOKuStar Validation for Ascent Capture Page • 12 Support of Ascent Capture Index Field Properties In the Document Class Properties dialog box, pro

Page 19 - #’ from the

DOKuStar Validation for Ascent Capture Page • 13 Hidden: A hidden field will not appear in Validation, but can still be accessed by scripting rout

Page 20 - InvoiceItems Postprocessing

DOKuStar Validation for Ascent Capture Page • 14 This is all that must be done. Beyond that, there are some options that can influence the layout

Page 21 - Concept

DOKuStar Validation for Ascent Capture Page • 15 To reorder columns, you can add a position number to the column name. This number is separated

Page 22

The reproduction, transmission or use of this document or its contents is not permitted wi

Page 23 - OnFieldChanged

DOKuStar Validation for Ascent Capture Page • 16 InvoiceItems Postprocessing There is obviously a correlation between the Invoice Items fields a

Page 24 - Subfield Events

DOKuStar Validation for Ascent Capture Page • 17 Events Concept Certain objects can get events. You will probably use the events defined for the F

Page 25 - OnFieldDataSourceChanged

DOKuStar Validation for Ascent Capture Page • 18 When writing an event handling routine, proceed as follows: - Define a variable of the appropria

Page 26 - Table Fields

DOKuStar Validation for Ascent Capture Page • 19 Events for the FieldType Object OnFieldActivated This event will be fired when a field gets activ

Page 27

DOKuStar Validation for Ascent Capture Page • 20 OnFieldDeactivated These events will be fired when the field was deactivated. If the OnFieldDeact

Page 28 - Event Order

DOKuStar Validation for Ascent Capture Page • 21 OnFieldDataSourceChanged These events result when the DataSource (i.e. the image) of the field ch

Page 29

DOKuStar Validation for Ascent Capture Page • 22 Table Fields Tables require additional features, because they are fields that are made up of rows

Page 30 - OnField Events

DOKuStar Validation for Ascent Capture Page • 23 If SubField.Name = "Quantity" Or SubField.Name = "SinglePrice" Then Next, the

Page 31 - OnDocumentDeleted

DOKuStar Validation for Ascent Capture Page • 24 Event Order Field events occur in the following order: OnFieldActivating OnFieldActivated &

Page 32 - OnDocumentDescriptorGot

DOKuStar Validation for Ascent Capture Page • 25 For table fields, the event queue is as follows: OnFieldActivating (when the user steps into the

Page 33

DOKuStar Validation for Ascent Capture Page • i Contents Introduction 1 The VBA Studio 2 Development Environment...

Page 34 - Batch Events

DOKuStar Validation for Ascent Capture Page • 26 Events for the DocumentType Object OnField Events For the DocumentType object, the same OnField..

Page 35 - OnImport, OnExport

DOKuStar Validation for Ascent Capture Page • 27 OnDocumentActivated This event occurs whenever a new document is selected. This may happen expli

Page 36 - Controller Events

DOKuStar Validation for Ascent Capture Page • 28 OnDocumentCreated This event will be fired when a new document is created. This may happen explic

Page 37

DOKuStar Validation for Ascent Capture Page • 29 Definition: Private Sub doc_ OnDocumentDescriptorLost(Document As Document, DocumentDescriptor A

Page 38 - OnCursorChanged

DOKuStar Validation for Ascent Capture Page • 30 Batch Events Batch events concern opening and closing of a batch. When a batch is opened and clos

Page 39 - FieldClass Events

DOKuStar Validation for Ascent Capture Page • 31 OnPreExported This event will be fired after the user selected to close or suspend the batch, but

Page 40 - Data Objects

DOKuStar Validation for Ascent Capture Page • 32 Controller Events The controller object itself is described below in a separate chapter, please r

Page 41 - DocumentTypes

DOKuStar Validation for Ascent Capture Page • 33 OnDocumentDeleted Will be fired for any document that gets deleted. Definition: Private Sub ctr

Page 42 - DocumentType

DOKuStar Validation for Ascent Capture Page • 34 OnFieldChanged Will be fired for any field that gets changed. Definition: Private Sub ctrl_OnFie

Page 43 - FieldType

DOKuStar Validation for Ascent Capture Page • 35 FieldClass Events There are the same events for FieldClass objects as for FieldType objects, see

Page 44

DOKuStar Validation for Ascent Capture Page • ii OnCursorChanged...

Page 45 - Documents

DOKuStar Validation for Ascent Capture Page • 36 Data Objects Dataset The Dataset is the topmost object in DOKuStar Validation concerning the dat

Page 46 - Document

DOKuStar Validation for Ascent Capture Page • 37 Schema The Schema object describes the batch structure, i.e. the Document Types and Field Types.

Page 47 - Next Field as Field

DOKuStar Validation for Ascent Capture Page • 38 Property/Method Returns Description At DocumentType Delivers a document type object at the sp

Page 48

DOKuStar Validation for Ascent Capture Page • 39 FieldTypes See the description for DocumentTypes. The properties and methods are identical after

Page 49 - Alternative

DOKuStar Validation for Ascent Capture Page • 40 Data The Data object is situated below the Dataset object, parallel to the Schema object. While t

Page 50 - DataSource, ImageDataSource

DOKuStar Validation for Ascent Capture Page • 41 Documents Holds the collection of documents in this batch. An individual document can be accessed

Page 51 - UserData

DOKuStar Validation for Ascent Capture Page • 42 Document Holds information about one document, especially the fields and the images. Furthermore,

Page 52 - VerifyEventArgs

DOKuStar Validation for Ascent Capture Page • 43 Fields Holds a collection of Field objects. Individual Fields can be accessed either by name or

Page 53 - Controller

DOKuStar Validation for Ascent Capture Page • 44 Field Properties and methods of the Field object (excerpt): Property/Method Returns Descriptio

Page 54 - Cursors and Filters

DOKuStar Validation for Ascent Capture Page • 45 TableField A TableField is a special Field object. Being derived from Field, all Field’s propert

Page 55

DOKuStar Validation for Ascent Capture Page • 1 Introduction This manual covers the topics an integrator needs to adapt DOKuStar Validation for As

Page 56

DOKuStar Validation for Ascent Capture Page • 46 SourceInfo, ImageSourceInfo SourceInfo is the base class of ImageSourceInfo. Within DOKuStar Vali

Page 57

DOKuStar Validation for Ascent Capture Page • 47 UserData UserData is an object that is linked to each field and document object. It serves as a c

Page 58

DOKuStar Validation for Ascent Capture Page • 48 VerifyEventArgs VerifyEventArgs is an object that is used with some events like OnFieldChanging.

Page 59 - Add-Ins

DOKuStar Validation for Ascent Capture Page • 49 Controller The Controller object is the third sub-object of the Dataset, with the purpose of cont

Page 60

DOKuStar Validation for Ascent Capture Page • 50 Cursors and Filters These topics are covered together, because there are some dependencies betwee

Page 61

DOKuStar Validation for Ascent Capture Page • 51 Option Explicit Private Sub Application_OnProjectLoaded(ByVal App As Application) Dim crs As

Page 62 - Creating an Add-In

DOKuStar Validation for Ascent Capture Page • 52 Property/Method Returns Description Documents Documents Returns the list of documents with re

Page 63

DOKuStar Validation for Ascent Capture Page • 53 In addition, all the methods defined for collections are available. For the filter objects, there

Page 64

DOKuStar Validation for Ascent Capture Page • 54

Page 65 - ValiTour.dll:

DOKuStar Validation for Ascent Capture Page • 55 Add-Ins Introduction Validation allows to modify its behavior using VBA. Because of some limitati

Page 66

DOKuStar Validation for Ascent Capture Page • 2 The VBA Studio Development Environment When planning to write scripts, you must know - where to w

Page 67 - Creating a Custom Toolbar

DOKuStar Validation for Ascent Capture Page • 56 Registry Key for Validation Add-Ins To be able to use a newly created add-in you must first add s

Page 68 - View menu:

DOKuStar Validation for Ascent Capture Page • 57 Under this key a sub-key has to be created for each add-in that should be used for the respective

Page 69

DOKuStar Validation for Ascent Capture Page • 58 Creating an Add-In An add-in for DOKuStar Validation is always an ActiveX Control. You can write

Page 70 - Common

DOKuStar Validation for Ascent Capture Page • 59 Private Sub IAddIn_Initialize(ByVal App As DOKuStarDataset.IApplication) for this class. It is c

Page 71

DOKuStar Validation for Ascent Capture Page • 60 Creating a Custom User Control In the previous section is described, how to create an add-in for

Page 72

DOKuStar Validation for Ascent Capture Page • 61 Modify the code of our example in the following way and generate ValiTour.dll: There is also

Page 73

DOKuStar Validation for Ascent Capture Page • 62

Page 74

DOKuStar Validation for Ascent Capture Page • 63 Creating a Custom Toolbar It is also possible to create one and only one custom toolbar for DOKuS

Page 75 - Workspaces

DOKuStar Validation for Ascent Capture Page • 64 As you can see, the toolbar is activated in the same way as the user control. The only differenc

Page 76

DOKuStar Validation for Ascent Capture Page • 65

Page 77

DOKuStar Validation for Ascent Capture Page • 3 Selecting this menu item will open the DOKuStar Validation Module. This is almost exactly the DOKu

Page 78

DOKuStar Validation for Ascent Capture Page • 66 Creating Menu Entries for Validation The programming interface allows to change the menu entries

Page 79 - Handling Keyboard Strokes

DOKuStar Validation for Ascent Capture Page • 67 After this code has been entered, generate ValiTour.dll and start dsval.exe. The File menu will

Page 80

DOKuStar Validation for Ascent Capture Page • 68 The New command has been replaced and shows a submenu with two entries. Following the Export Da

Page 81 - Replacing Existing Controls

DOKuStar Validation for Ascent Capture Page • 69 The second function of the Workspace service, workspaceSink_OnCommand, is needed to specify the

Page 82

DOKuStar Validation for Ascent Capture Page • 70 If you enter the code shown above, generate ValiTour.dll, start dsval.exe, and open the File me

Page 83 - Managing the Image Control

DOKuStar Validation for Ascent Capture Page • 71 Workspaces In the previous section we used the Workspace service of Validation. In this section i

Page 84 - Predefined Add-Ins

DOKuStar Validation for Ascent Capture Page • 72 What happens? We have loaded the workspace default.vws at startup of Validation. In this works

Page 85 - Special Issues

DOKuStar Validation for Ascent Capture Page • 73 Validation now comes up with the last changes you made in the workspace. Play a little around t

Page 86

DOKuStar Validation for Ascent Capture Page • 74 Then we have to modify the functions loadDefault() and storeDefault(). In loadDefault() we firs

Page 87 - Exchanging the Fields View

DOKuStar Validation for Ascent Capture Page • 75 Handling Keyboard Strokes Keyboard strokes can also be handled by an add-in for DOKuStar Validati

Page 88

DOKuStar Validation for Ascent Capture Page • 4 Some important remarks: - You can (but you don’t have to) publish the batch class before you star

Page 89

DOKuStar Validation for Ascent Capture Page • 76 Now start now Validation with dsval ValiTour.vpj. The Validation window will look as follows:

Page 90 - Table Data Output

DOKuStar Validation for Ascent Capture Page • 77 Replacing Existing Controls In a previous section we created a custom user control. As was stated

Page 91

DOKuStar Validation for Ascent Capture Page • 78 Now start Validation with the command dsval ValiTour.vpj. The Validation will look like this:

Page 92 - Character correction mode

DOKuStar Validation for Ascent Capture Page • 79 Managing the Image Control The behaviour of the image control, like scrolling and zooming, can al

Page 93

DOKuStar Validation for Ascent Capture Page • 80 Now start dsval ValiTour.vpj and try the key combinations to see the effects. Predefined Add-In

Page 94 - BatchClass, in your

DOKuStar Validation for Ascent Capture Page • 81 Special Issues Information Bar The information bar is one of the windows of the Validation’s user

Page 95

DOKuStar Validation for Ascent Capture Page • 82 The result will look like this:

Page 96 - • ShowDetailZone = False

DOKuStar Validation for Ascent Capture Page • 83 Exchanging the Fields View In the Validation’s Fields View all fields of the current document are

Page 97 - How Do I…

DOKuStar Validation for Ascent Capture Page • 84 In this mode, you could also close the editing window. - Display Mode: In this mode, editing i

Page 98

DOKuStar Validation for Ascent Capture Page • 85 Note 1: You can also mix the modes: Use the editing mode for some fields, and the display mode f

Page 99 - Test the Scripting Code

DOKuStar Validation for Ascent Capture Page • 5 Files Yet, I didn’t mention one important thing: Where does all the code go? In most development e

Page 100

DOKuStar Validation for Ascent Capture Page • 86 Table Data Output When DOKuStar recognizes tables, the corresponding data is transported in separ

Page 101

DOKuStar Validation for Ascent Capture Page • 87 If no table was found on the document, there will be a table data file whose <Rows> element

Page 102 - Not Restore Old Contents

DOKuStar Validation for Ascent Capture Page • 88 Character correction mode For editing single characters (for example rejects as first step of a m

Page 103 - \n between the lines:

DOKuStar Validation for Ascent Capture Page • 89 Step 3 Now we are ready for integrating the following code lines When the project is loaded, f

Page 104 - TableField itself

DOKuStar Validation for Ascent Capture Page • 90 Remarks: You will find the above code lines, explaining the character correction mode, as a com

Page 105

DOKuStar Validation for Ascent Capture Page • 91 Properties and methods of the ValRejectEdit control: Property/Method Value Default Descriptio

Page 106 - Merge Table Rows

DOKuStar Validation for Ascent Capture Page • 92 In the snippet view window the image of the index field is displayed, where the rejected characte

Page 107

DOKuStar Validation for Ascent Capture Page • 93 How Do I… Reject Documents and Pages Documents and pages can be rejected and un-rejected by the u

Page 108

DOKuStar Validation for Ascent Capture Page • 94 Note: In this example, it is important to check for the existence of the Rejected UserData befor

Page 109

DOKuStar Validation for Ascent Capture Page • 95 Test the Scripting Code Something about this topic has already been said in the first chapter, th

Commentaires sur ces manuels

Pas de commentaire