imaging professional developer guide - opentext · title: imaging professional developer guide...

967

Upload: others

Post on 08-Jul-2020

13 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Tech Writer
Page 2: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 3: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Contents

Professional Developer’s Guide

1 Imaging In Development

Welcome to the Professional Developer’s Guide 2

Introducing Imaging for Windows 3Imaging Components 4

Imaging Application 4

Page 4: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 5: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 6: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 7: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 8: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 9: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Contents

Annotation Selection 118Example 119Copy Image Project 119

Printing An Image 122Image Printing Defined 122Example 122Print Image Project 124

Scanning an Image Using a Template 130Template Scanning Defined 130Example 131Template Scan Project 133

Managing an Image File Using Thumbnails 143Thumbnails Defined 143Example 143

ix

Page 10: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Contents

The following sections explain each server option setting and related property in detail. 177

File Location for Document Pages (FileStgLoc1x Property) 177Force Lower-Case File Names (ForceLowerCase1x Property) 178

Link Files On Reference(ForceFileLinking1x Property) 178

Delete Files With Pages(ForceFileDeletion1x Property) 180

Browsing for Volumes or Image Files and Server Documents 181Browsing for Volumes 181Browsing for Files and Documents 182

x

Page 11: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 12: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 13: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 14: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 15: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 16: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 17: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 18: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 19: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 20: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 21: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 22: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 23: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 24: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 25: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 26: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 27: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 28: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 29: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 30: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 31: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 32: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 33: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 34: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 35: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 36: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 37: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 38: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 39: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 40: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Contents

Imaging Flow Samples 861Flow Program 861Flow Variables 861

B Imaging ActiveX Tips and Tricks

Tips and Tricks 864Miscellaneous Programming Tips 864

xl

Page 41: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Contents

Optical Character Recognition Tips 873When working with Interactive Training 873When performing OCR 874

C Imaging ActiveX Controls Summary

Overview 878

xli

Page 42: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 43: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 44: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 45: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 46: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 47: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 48: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 49: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 50: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 51: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 52: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 53: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 54: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 55: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 56: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 57: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 58: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 59: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Imaging In Development

■ Copy an image.■ Print an image.■ Scan images using a template.■

17

Page 60: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 61: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 62: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 63: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 64: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 65: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 66: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 67: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 68: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 69: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 70: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 71: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 72: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 73: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 74: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 75: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 76: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 77: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 2

Demonstration ProjectThis section demonstrates how to automate the Imaging application from Microsoft Excel.

While a wide-ranging dis-cussion of every Imaging

36

Page 78: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 79: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 2

Thumbnail

The Thumbnail view mode lets users display image files as a series of thumbnail images — one for each image page. It lets users:

■ View multiple image pages simultaneously.■ Rearrange pages using drag and drop.■ Delete pages.■ Drag and drop pages to and from other applications that support drag

and drop functionality.

Keep in mind that some Imaging functions — like annotation and zoom — are not available in this mode because they are not appropriate for use on such small images.

Rearranging image pages is available with Imaging for Windows Professional Edition only.

38

Page 80: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 81: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 82: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 83: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 2

Opening the Spreadsheet File

Start Excel and then open the ImagingAutomation.xls file. The sample spreadsheet appears.

Opening and Displaying the Image File

Give focus to Cell A1, which contains the path and file name of the sample TIFF image file.

42

Page 84: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 85: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 86: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 87: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 88: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 89: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 90: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 91: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 92: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

3

Automation Lexicon

This chapter describes the properties and methods of each Imaging for

Windows Automation object.

In This Chapter

Page 93: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 94: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 95: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 96: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 97: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 98: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 99: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 3

The ImageView property and the ImageFileObject.ActivePage property have the following relationships:

See Also

58

Page 100: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 101: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 102: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 103: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 104: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 105: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 106: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 107: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 108: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 109: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 110: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 111: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 112: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 113: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 114: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 115: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 3

Ocr MethodDescription OCRs all image file pages.

Usage ImageFileObject . Ocr

Remarks The Image file must be open. The Ocr method uses the OcrOutputFile and OcrOutputFileType properties.

Example 'This example performs an OCR on an image object.Dim App, Img As ObjectSet App = CreateObject("Imaging.Application")Set Img = App.CreateImageViewerObject(1)Img.Open "d:\pcx.tif"

74

Page 116: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 117: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 118: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 119: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 120: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 121: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 122: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 123: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 124: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 125: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 126: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 127: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 128: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 129: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 3

Ocr MethodDescription OCRs the page range.

Usage PageRangeObject . Ocr ( )

Example 'This example OCRs pages 2 through 6.x = Img.Pages(2,6).Ocr

88

Page 130: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 131: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 132: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 133: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Visual BasicTo add the Imaging ActiveX controls to Visual Basic

1 Start Visual Basic and create a new project.

2

92

Page 134: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 135: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

7 In the Categories list box:

a Click ActiveX Controls.

b From the Commands list box, drag each Imaging ActiveX control and drop it onto the Controls toolbox.

c When you finish dragging and dropping the Imaging ActiveX

94

Page 136: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 137: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 138: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 139: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Visual C++There are two ways to access the Imaging ActiveX Controls on-line help in Visual C++. You can access help from the:

■ Components and Controls Gallery

98

Page 140: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 141: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 142: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 143: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 144: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 145: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 146: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 147: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 148: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 149: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 150: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 151: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 152: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 153: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Convert Image ProjectThe Convert Image project shows how to provide image file type and page property conversion functions to your users.

112

Page 154: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 155: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 156: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 157: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 158: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 159: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 160: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 161: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 162: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Adding Imaging Using ActiveX Controls

Finally, the procedure obtains the current image content of the Clipboard using Visual Basic’s GetData method and displays it in the PictureBox

121

Page 163: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 164: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 165: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Print Image ProjectThe Print Image project demonstrates printing an image file.

The project consists of one form and the following controls:

■ One Image Admin control■ One Image Edit control■ Two Command button controls in a control array

And it uses the following Imaging methods to provide the print image function:

124

Page 166: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 167: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 168: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 169: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 170: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Adding Imaging Using ActiveX Controls

Private Sub cmdPrint_Click(Index As Integer)

Select Case Index Case 0 'Print

On Error GoTo Print_EH

'Display the Print dialog box. kdkImgAdmin1.ShowPrintDialog frmPrintImage.hWnd

'User pressed OK continue with print If kdkImgAdmin1.StatusCode = 0 Then

129

Page 171: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 172: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 173: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 174: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 175: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 176: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Adding Imaging Using ActiveX Controls

Private Sub cmdOK_Click()

'Set the File Type property of the Image Scan 'control on frmMain according to File Type option 'button on this form. In addition, set the Enabled 'property of the label and text box controls accordingly. If optTiff.Value Then frmMain!kdkImgScan1.FileType = TIFF frmMain!lblPages.Enabled = True

135

Page 177: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 178: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 179: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 180: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 181: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

■ Click Stop Button to have the Imaging software display a Stop button while scanning.

The mnuStopButton_Click() event in the Main form sets the StopScanBox property to True or False (as appropriate) to either display, or not display, the Stop button. The Stop

140

Page 182: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 183: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Private Sub cmdStartScan_Click() On Error GoTo Scan_EH... 'Link the Image Scan and Image Edit controls to permit display 'while scanning kdkImgScan1.DestImageControl = "kdkImgEdit1" 'Set the ScanTo property to enable template scanning kdkImgScan1.ScanTo = DisplayAndUseFileTemplate

142

Page 184: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 185: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 186: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 187: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 188: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 189: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 190: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 191: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 192: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Adding Imaging Using ActiveX Controls

Sorting an Image File (Using Drag and Drop)If necessary, start the Thumbnail Sorter project and select a multipage image file.

151

Page 193: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 194: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 195: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 196: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 197: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 198: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 199: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 200: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 201: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 202: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 203: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 204: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 205: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 206: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 207: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 4

Private Sub cmdUnload_Click() Dim intPageCount As Integer, intPageNumber As Integer Dim intSlashPos As Integer, intDotPos As Integer Dim intVerifyExistence As Integer Dim strPrefix As String, strCurrentPath As String Dim strSourceFile As String, strUnloadedFileName As String Dim strExt As String, strPageNum As String 'Get the path and file name of the source file strSourceFile = kdkImgEdit1.Image strPrefix = kdkImgEdit1.Image 'Get the number of pages in the source file intPageCount = kdkImgEdit1.PageCount

'Get the current path strCurrentPath = CurDir 'Establish an appropriate prefix for the Unloaded file names intSlashPos = 7 'First, eliminate the characters to the left of the slashes Do While intSlashPos <> 0 intSlashPos = InStr(1, strPrefix, "\", 1) strPrefix = Right(strPrefix, Len(strPrefix) - intSlashPos) Loop 'Second, eliminate the characters to the right of the dot

166

Page 208: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 209: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 210: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

Imaging Server ConceptsThis section explains the basic concepts of Imaging 1.x and Imaging 3.x server access.

Developing applications that can access and interact with

170

Page 211: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Developing Client-Server Applications

File Type SupportThe Imaging 1.x and Imaging 3.x servers support the file types described in the following table.

Standard Dialog Boxes

171

Page 212: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 213: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 214: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 215: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 216: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 217: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 218: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 219: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 220: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

Delete Files With Pages(ForceFileDeletion1x Property)

When users delete a page from an Imaging 1.x server document, they may also want to delete the linked image file.

The

180

Page 221: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 222: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 223: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 224: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 225: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 226: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 227: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Developing Client-Server Applications

When users select 1.x Files and Documents, they can use the Look in list box to browse file and document volumes in the current domain, as illustrated in the following figure.

187

Page 228: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 229: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 230: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 231: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 232: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 233: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 234: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 235: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 236: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 237: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 238: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 239: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 240: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 241: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 242: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

GetSelectedAnnotationLineColor method — Returns the line color used in selected Straight Line, Freehand Line, and Hollow Rectangle annotations.

SetSelectedAnnotationLineColor method

202

Page 243: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 244: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

Example

Users of your application may want to annotate image files with important comments. They may also want to link image pages to related Web pages.

Scenario

Kim manages a QA (quality assurance) group in a software company that produces applications for engineer-to-order manufacturing firms around the world. Some of the development and testing of the applications is performed in the United States, the remainder is performed in Ireland.

204

Page 245: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 246: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

Show1xServerOptDlg method — To display the Imaging Server Options dialog box, which lets users set Imaging 1.x server options.

ShowFileDialog method — To display the Open dialog box, which lets users select the image files or server documents they want to open.

Browse1x method — To display the Browse 1.x dialog box, which

206

Page 247: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 248: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 249: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 250: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 251: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 252: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 253: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 254: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 255: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 256: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 257: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 258: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 259: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 260: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 261: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 262: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 263: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Developing Client-Server Applications

On the 1.x Cabinet\Drawer\Folder\Document window, click the desired document in the Document

223

Page 264: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 265: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 266: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 267: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 268: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 5

Private Sub cmdFind_Click() Dim objResults As Object Dim vntItem As Variant Dim strConvertedDate As String lstResults.Clear '------------------------------------------------------------ ' Perform a query; store Doc names in the lstResults listbox. '------------------------------------------------------------ If optQuery(0).Value = True Then 'Query by Document

228

Page 269: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Developing Client-Server Applications

Select a document and click OK. The cmdOK_Click() event

229

Page 270: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 271: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 272: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 273: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 274: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

6

Image-Enabling Web Pages

This chapter explains how to use the Imaging ActiveX controls to

image-enable your Web pages.
Page 275: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 276: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 277: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 278: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 279: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 6

As an example, the following code snippet shows the proper object reference declarations for two Imaging ActiveX controls: Image Edit and Image Thumbnail.

240

Page 280: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 281: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 282: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 283: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 284: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Obtaining Help

Obtaining HelpThis section explains how to access the on-line help system of the Imaging ActiveX controls.

245

Page 285: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 286: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 287: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 288: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 289: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 290: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 291: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 292: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 293: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 294: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 295: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 296: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Demonstration Project

The setControl method saves these references. This action completes the connection between the Imgctls applet and the HTML source code,

257

Page 297: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 6

The LoadImage() method (shown in the following code snippet) uses several properties and methods to display the image document file in the

258

Page 298: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 299: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 300: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 301: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 302: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 303: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 304: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 305: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 306: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

7

Image Edit/Image Annotation Controls

This chapter describes the properties, methods, and events for the Image

Edit and Image Annotation controls. This chapter also describes prop-
Page 307: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 308: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 309: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 310: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 311: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 312: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 313: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 314: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 315: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

Image ManipulationThe Image Edit control has properties, methods, and events that enable you to add image manipulation functions to your application programs. These functions permit end users to perform the following tasks on displayed images:

■ Convert to text (when used in conjunction with the Image OCR control)■ Copy, cut, and paste to the Clipboard■

276

Page 316: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 317: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

What the IATB Control Lets Your Users DoEach IATB control lets your users draw text or graphical annotations on displayed image documents.

PrerequisitesYou must include at least one Image Admin control and one Image Edit control in your application.

Further, you must link each IATB control to the Image Edit control that displays images to be annotated by your end users.

278

Page 318: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 319: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 320: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

AnnotationFillStyle Property

'Sets the AnnotationType to a filled rectangle and the fill color of the 'rectangle to blue using Visual Basic color constants. ImgAnnTool1.AnnotationType = wiFilledRect '4 ImgAnnTool1.AnnotationFillColor = vbBlue 'Draw the blue rectangle on the Image Edit control whose ImageControl 'name is ImgEdit1

281

Page 321: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 322: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 323: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 324: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 325: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 326: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 327: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 328: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 329: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 330: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 331: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

AnnotationLineStyle Example — VC++This example draws a transparent line across the width of an image.

void CImgEdit1Dlg::OnDrawline() { // This would draw a line across the width of an image long XWidth; // Determine the width of e th/˝4

292

Page 332: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

AnnotationLineWidth Property

See Also AnnotationLineStyle property, AnnotationType property, GetSelectedAnnotationLineWidth method, SetSelectedAnnotationLineWidth method.

AnnotationLineWidth Example — VBThis example draws a 10-pixel-wide line across the width of an image.

Private Sub cmdDrawLine_Click() Dim XWidth As OLE_XSIZE_PIXELS 'Determine the width of the image -- this will work even if the image 'is scaled up or down XWidth = ImgEdit1.ImageScaleWidth 'line will be green, transparent, 10 pixels wide ImgEdit1.AnnotationLineColor = vbGreen ImgEdit1.AnnotationLineStyle = wiTransparent '0 ImgEdit1.AnnotationLineWidth = 10 ImgEdit1.AnnotationType = wiStraightLine '1 'Draw the line 'left position = 0 (start at left side) 'top position = 100 pixels from top of page 'width of line = width of image as it is displayed 'height of line = 0 (line will be horizontal) ImgEdit1.Draw 0, 100, XWidth, 0End Sub

AnnotationLineWidth Example — VC++This example draws a 10-pixel-wide line across the width of an image.

void CImgEdit1Dlg::OnDrawline() { // This would draw a line across the width of an image long XWidth; // Determine the width of the image -- this will work even if the image // is scaled up or down XWidth = ImgEdit1.GetImageScaleWidth(); // line will be green, transparent, 10 pixels wide ImgEdit1.SetAnnotationLineColor(0xFF00); // vbGreen ImgEdit1.SetAnnotationLineStyle(0); // 0 ImgEdit1.SetAnnotationLineWidth(10); // 10 ImgEdit1.SetAnnotationType(1); // wiStraightLine 1 // Draw the line // left position = 0 (start at left side) // top position = 100 pixels from top of page // width of line = width of image as it is displayed // height of line = 0 (line will be horizontal) VARIANT vWidth; V_VT(&vWidth) = VT_I4; V_I4(&vWidth) = XWidth; VARIANT vHeight; V_VT(&vHeight) = VT_I4; V_I4(&vHeight) = 0; ImgEdit1.Draw(0, 100, vWidth, vHeight);}

293

Page 333: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 334: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 335: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 336: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 337: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 338: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 339: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 340: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 341: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 342: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 343: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 344: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 345: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 346: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 347: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 348: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

CompressionType Property

Remarks The CompressionType value is independent of an image being displayed. If the image specified in the Image and Page properties is being displayed, the value indicates the compression type of the displayed image. If the image specified in the Image and Page properties is not being displayed, the value indicates the compression type of the image specified in the Image property.

Available at run-time as read-only.

See Also

309

Page 349: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 350: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 351: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 352: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 353: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 354: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 355: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 356: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 357: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 358: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 359: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 360: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ImageHeight Property

ImageHeight Example — VBThis example displays an image and scales it so it fits into the window. Then it displays the

321

Page 361: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

frmInfo.lblImgScaleHeight.Format("%i",lInfo); lInfo = ImgEdit1.GetImageScaleWidth(); frmInfo.lblImgScaleWidth.Format("%i",lInfo); frmInfo.DoModal();}

ImageModified PropertyDescription Indicates whether an image has been modified.

Available With

Applies To Image Edit control.

Usage object . ImageModified

Data Type Boolean.

Remarks

322

Page 362: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 363: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 364: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 365: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 366: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 367: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 368: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 369: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 370: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 371: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 372: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 373: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 374: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 375: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 376: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 377: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 378: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 379: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 380: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 381: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 382: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 383: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

ImgEdit1.SetPage(lngNewPg); ImgEdit1.Display();}

PageType PropertyDescription Returns the page type of the image specified in the Image

344

Page 384: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

PictureDisabled Property

PageType Example — VBThis example uses the PageType property to determine the page type of the image specified in the Image property.

Private Sub cmdPageType_Click()

345

Page 385: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 386: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 387: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 388: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 389: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 390: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ScrollPositionX Property

ScrollBars Example — VC++This example shows some property settings you might want to make prior to displaying an image.

void CImgEdit1Dlg::OnLoadEditctrl1(double Zoom) {

351

Page 391: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

See Also AutoRefresh property, Display method, Load event, Scroll event, ScrollBars property, ScrollImage method, ScrollPositionY property.

352

Page 392: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 393: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 394: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ScrollShortcutsEnabled Property

ScrollShortcutsEnabled Example — VBThis example shows some property settings you might want to make prior to displaying an image.

Private Sub ImgEdit1_Load(ByVal Zoom As Double)

355

Page 395: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

SelectionRectangle PropertyDescription Returns or sets whether a selection box will be drawn when end users click the left mouse

356

Page 396: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 397: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 398: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 399: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 400: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 401: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 402: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 403: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 404: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

AutoDeskew Method

ImgEdit1.AutoDeskew 'Remove speckles on the image using the default 'threshold value for dot size ImgEdit1.Despeckle 'If there is a lot of extraneous space around image 'borders, cropping might reduce processing time ImgEdit1.AutoCrop 'Show the OCR dialog box ImgOCR1.ShowOCREnd Sub

365

Page 405: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 406: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 407: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 408: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 409: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 410: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ClipboardCopy Method

Applies To Image Edit control.

Usage object . ClipboardCopy [ Left , Top, Width ,

371

Page 411: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 412: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 413: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 414: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 415: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 416: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 417: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 418: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

DeleteAnnotationGroup Method

Arguments The Crop method has the following arguments:

Returns None.

Remarks The Display

379

Page 419: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 420: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 421: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 422: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Despeckle Method

Arguments The Despeckle method has the following argument:

Returns None.

Remarks

383

Page 423: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 424: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Display Method

Display Example — VBThis example displays a user-selected image file in an Image Edit control.

Private Sub cmdDisplayImage_Click() 'Use the ImgAdmin Open dialog box to display a file in the Image 'Edit and Thumbnail controls. ImgAdmin1.ShowFileDialog OpenDlg

385

Page 425: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 426: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 427: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 428: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 429: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

Arguments The DrawSelectionRect method has the following arguments:

Returns None.

Remarks None.

See Also

390

Page 430: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 431: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 432: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 433: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 434: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 435: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 436: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 437: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 438: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 439: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 440: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 441: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 442: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

GetCurrentAnnotationGroup Method

GetCurrentAnnotationGroup MethodDescription Returns the name of the annotation group to which subsequent annotations will belong.

Available With

403

Page 443: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 444: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 445: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 446: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 447: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 448: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 449: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 450: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 451: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 452: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 453: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 454: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 455: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 456: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 457: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 458: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 459: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 460: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 461: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 462: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 463: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 464: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 465: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 466: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

HideAnnotationGroup Method

Returns None.

Remarks The Display method must be invoked prior to calling this method.

427

Page 467: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 468: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 469: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 470: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 471: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 472: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 473: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 474: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 475: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 476: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 477: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 478: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 479: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 480: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 481: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 482: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 483: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 484: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 485: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 486: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 487: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 488: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 489: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 490: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 491: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 492: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

SaveAs Method

Special Note Regarding Imaging 1.x/3.x Documents and Files

If you want your program to process Imaging 1.x managed documents or files, you must

453

Page 493: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 494: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 495: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 496: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 497: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 498: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 499: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 500: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 501: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

SelectAnnotationGroup MethodDescription Selects all annotation marks within a specific group on the image page.

Available With

Applies To

462

Page 502: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 503: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 504: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 505: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 506: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 507: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 508: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

SetSelectedAnnotationBackColor Method

SetRubberStampItem Example — VC++This example lets users select the type of rubber stamp they want to use.

void CImgEdit2Dlg::OnSetcurrentstamp() { // This allows a user to click on a stamp in order to select it as

469

Page 509: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 510: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 511: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 512: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 513: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 514: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 515: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 516: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 517: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 518: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 519: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 520: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

SetSelectedAnnotationLineStyle Method

'mark and init the dialog box color property to that color. LineColor = ImgEdit1.GetSelectedAnnotationLineColor CommonDialog1.Color = LineColor CommonDialog1.Flags = cdlCCRGBInit CommonDialog1.ShowColor ImgEdit1.SetSelectedAnnotationLineColor CommonDialog1.ColorEnd Sub

481

Page 521: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 522: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 523: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 524: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 525: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 526: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 527: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

{ m_TextZone.SetCheck(0); m_PictureZone.SetCheck(1); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE}

ShowAnnotationGroup MethodDescription

488

Page 528: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 529: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 530: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 531: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 532: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 533: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 534: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 535: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 536: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 537: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 538: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 539: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 540: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 541: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 542: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 543: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 544: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 545: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 7

Remarks For this event to fire, an image must be displayed and the Image Edit control must be entering or exiting Text Edit mode.

506

Page 546: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 547: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 548: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 549: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 550: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 551: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 552: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

MarkEnd Event

Usage Sub object _MarkEnd ( Left , Top, Width , Height , MarkType , GroupName

513

Page 553: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 554: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 555: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 556: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 557: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 558: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 559: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 560: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 561: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 562: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 563: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 564: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 565: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 566: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 567: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 568: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 569: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 570: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 571: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 572: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 573: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 574: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 575: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 576: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 577: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 578: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 579: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 580: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 581: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 582: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Image Edit/Image Annotation Controls

File TypesImaging ActiveX controls support the following file types:

AWD

543

Page 583: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 584: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

8

Image Admin Control

This chapter describes what developers and users can do using the Image

Admin control, as well as the properties and methods that are available with this control. In addition to the properties and methods described in this chapter, the following properties and methods, which are described in Chapter 7, apply to the Image Admin control:

■ StatusCode property ■ GetVersion method

Page 585: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 586: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 587: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 588: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 589: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 590: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

CancelError Property

CancelError PropertyReturns or sets whether an error will be returned when a user chooses Cancel from the following dialog boxes: File, Print, LoginToServer, or 1.x Server Options.

Available With

Usage object . CancelError [= { True | False }]

Data Type Boolean.

Remarks

551

Page 591: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 592: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 593: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 594: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 595: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 596: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 597: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 598: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

CompressionType Property

case 8: strImgFileType = "GIF"; break; case 9: strImgFileType = "WIF"; break; } frmInfo.m_FileType = strImgFileType; // Read the CompressionType property and translate the value to a // corresponding string. switch (ImgAdmin1.GetCompressionType())

559

Page 599: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

// Read the PageType property and translate the value to a // corresponding string. switch (ImgAdmin1.GetPageType()) {

560

Page 600: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 601: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 602: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 603: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 604: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 605: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 606: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 607: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 608: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

FileType Property

case 8: strImgFileType = "GIF"; break; case 9: strImgFileType = "WIF"; break; } frmInfo.m_FileType = strImgFileType; // Read the CompressionType property and translate the value to a // corresponding string. switch (ImgAdmin1.GetCompressionType()) { case 0: strImgCompType = "Unknown"; break; case 1: strImgCompType = "No Compression"; break; case 2: strImgCompType = "Group3(1D)"; break; case 3: strImgCompType = "Group3(Modified Huffman)"; break; case 4: strImgCompType = "PackBits"; break; case 5: strImgCompType = "Group4(2D)"; break; case 6: strImgCompType = "JPEG"; break; case 7: strImgCompType = "RBA"; break; case 8: strImgCompType = "Group3(2D)"; break; case 9: strImgCompType = "LZW"; break; } frmInfo.m_CompType = strImgCompType; // Read the PageType property and translate the value to a // corresponding string. switch (ImgAdmin1.GetPageType()) { case 0: strImgPageType = "Unknown"; break; case 1: strImgPageType = "Black and White"; break;

569

Page 609: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

case 2: strImgPageType = "4 bit grayscale"; break; case 3: strImgPageType = "8 bit grayscale"; break; case 4: strImgPageType = "4 bit palettized"; break; case 5: strImgPageType = "8 bit palettized"; break; case 6: strImgPageType = "24 bit RGB"; break; case 7: strImgPageType = "24 bit BGR"; break; } frmInfo.m_PageType = strImgPageType; // Determine the dimensions of the image page. long lInfo = ImgAdmin1.GetImageHeight(); frmInfo.m_Height.Format("%i",lInfo); lInfo = ImgAdmin1.GetImageWidth(); frmInfo.m_Width.Format("%i",lInfo); // Determine the X and Y resolution of the image page. lInfo = ImgAdmin1.GetImageResolutionX(); frmInfo.m_XRes.Format("%i",lInfo); lInfo = ImgAdmin1.GetImageResolutionY(); frmInfo.m_YRes.Format("%i",lInfo); // Determine the number of pages in the file. lInfo = ImgAdmin1.GetPageCount();

570

Page 610: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 611: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 612: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

FilterIndex Property

Data Type Long.

Remarks The file Open or Save As dialog box is created by the ShowFileDialog method. See page

573

Page 613: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 614: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 615: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 616: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 617: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

ForceFileLinking1x PropertyDescription Returns or sets how file pages being added to a document residing in a 1.x repository are

handled.

Depending on the setting of the

578

Page 618: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 619: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 620: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 621: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 622: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 623: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 624: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 625: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

Case 1 strImgFileType = "TIF" Case 2 strImgFileType = "AWD" Case 3 strImgFileType = "BMP" Case 4 strImgFileType = "PCX" Case 5 strImgFileType = "DCX" Case 6 strImgFileType = "JPG" Case 7 strImgFileType = "XIF" Case 8

586

Page 626: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 627: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

case 3: strImgFileType = "BMP"; break; case 4: strImgFileType = "PCX"; break; case 5: strImgFileType = "DCX"; break; case 6: strImgFileType = "JPG"; break; case 7: strImgFileType = "XIF"; break; case 8:

588

Page 628: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 629: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 630: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ImageResolutionX Property

Case 6 strImgFileType = "JPG" Case 7 strImgFileType = "XIF" Case 8 strImgFileType = "GIF" Case 9 strImgFileType = "WIF" End Select frmInfo.lblImgInfo(0).Caption = strImgFileType 'Read the CompressionType property and translate the value to a 'corresponding string.

591

Page 631: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 632: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 633: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 634: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 635: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 636: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 637: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 638: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 639: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 640: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 641: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 642: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 643: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 644: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 645: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 646: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 647: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 648: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 649: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 650: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 651: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

case 6: strImgFileType = "JPG"; break; case 7: strImgFileType = "XIF"; break; case 8: strImgFileType = "GIF"; break; case 9: strImgFileType = "WIF"; break; } frmInfo.m_FileType = strImgFileType; // Read the CompressionType property and translate the value to a

612

Page 652: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 653: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 654: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 655: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 656: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 657: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 658: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 659: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 660: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 661: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 662: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

PageType Property

case 6: strImgCompType = "JPEG"; break; case 7: strImgCompType = "RBA"; break; case 8: strImgCompType = "Group3(2D)"; break; case 9: strImgCompType = "LZW"; break; } frmInfo.m_CompType = strImgCompType;

623

Page 663: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 664: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 665: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 666: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 667: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

// Set filename to be printed to the displayed file. If this property // is not set, the dialog box will not display. ImgAdmin1.SetImage (ImgEdit1.GetImage()); VARIANT vhWnd; V_VT(&vhWnd) = VT_I4; V_I4(&vhWnd) = (long)m_hWnd; ImgAdmin1.ShowPrintDialog (vhWnd); // Print the image using the parameters obtained from the print // dialog box (ex. start page, end page etc.). VARIANT vStart, vEnd, vOutputFormat, vAnnotations, evt;

628

Page 668: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 669: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 670: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 671: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 672: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 673: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 674: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 675: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 676: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 677: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 678: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 679: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 680: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Browse1x Method

VARIANT vhWnd; V_VT(&vhWnd) = VT_I4; V_I4(&vhWnd) = (long)m_hWnd; ImgAdmin1.ShowFileDialog (0,vhWnd); // OpenDlg strAppendFile = ImgAdmin1.GetImage(); // Restore image property to the original filename because this property // must contain the destination file. ImgAdmin1.SetImage (strOrigFile); // User wants to append 3 pages starting with page 1. VARIANT evt;

641

Page 681: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 682: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 683: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 684: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 685: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 686: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 687: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 688: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 689: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 690: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 691: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 692: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 693: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 694: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 695: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 696: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 697: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 698: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 699: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 700: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 701: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

Rename MethodDescription Renames a file, a document, or a directory in an Eastman Imaging 1.x Server file or

document manager namespace.

Available With

662

Page 702: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Replace Method

Remarks The current image is specified by the Image property.

663

Page 703: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 704: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 705: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 706: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

SetSystemFileAttributes Method

Arguments The SetSystemFileAttributes method has the following arguments:

Parameter Data Type Description

PageType Integer Specifies a page type:0 — Unknown1 — Black and white2 — 4-bit gray scale3 — 8-bit gray scale4 — 4-bit palettized5 — 8-bit palettized6 — 24-bit RGB7 — 24-bit BGR

FileType Integer Specifies a file type value:0 — Unknown1 — TIF2 — AWD (Windows 95 and 98 only)3 — Bitmap (BMP)4 — PCX5 — DCX6 — JPEG7 — XIF8 — GIF

CompressionType Integer Specifies compression information:0 — Unknown1 — No compression2 — Group 3 1D FAX3 — Group 3 Modified Huffman4 — Packbits5 — Group 4 2D FAX6 — JPEG7 — Reserved8 — Group 3 2D FAX9 — LZW

667

Page 707: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 708: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 709: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 710: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 711: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 8

ImgAdmin1.ShowFileDialog OpenDlg, Form1.hWnd 'Determine if a file was selected or cancel was pressed. If ImgAdmin1.Image = "" Then Exit Sub 'Set the image properties in the Image Edit and Thumbnail 'controls to the name of the file selected in the dialog box. ImgEdit1.Image = ImgAdmin1.Image ImgThumbnail1.Image = ImgAdmin1.Image 'Display the image in the ImgEdit and Thumbnail control. ImgEdit1.Display End Sub

Example 2 — SaveAs

This example saves the displayed image with a new filename using the Admin Save dialog and the Image Edit control SaveAs method.

Private Sub cmdSaveAs_Click() ImgAdmin1.ShowFileDialog SaveDlg ImgEdit1.SaveAs ImgAdmin1.Image End Sub

672

Page 712: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 713: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 714: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 715: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 716: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

VerifyImage Method

PrintErr: 'User pressed the cancel button. Exit Sub End Sub

ShowPrintDialog Example – VC++This example uses the ShowPrintDialog method to enable the user to specify printing

677

Page 717: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 718: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 719: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 720: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Image Admin Control

RGB24 — Displays an image by letting Windows map the image directly to the monitor. With suitable hardware, the RGB24 display type produces the best color at the

681

Page 721: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

9

Image OCR Control

This chapter describes the properties, methods, and events for the Image

OCR control. In addition to the methods and events described in this chapter, the following methods and events, which are described in Chapter 7, apply to the Image OCR control:

■ AboutBox method ■ ReadyStateChange event■ GetVersion method

Page 722: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 723: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 724: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 9

CopytoClipBoard PropertyDescription Specifies that the OCR results are to be placed on the Windows Clipboard.

Available With

Usage object . CopytoClipBoard [= { True | False }]

Data Type Boolean.

CopyToClipBoard Example — VBThis example demonstrates how OCR results can be output to the clipboard instead of to an output file of the supported types.

686

Page 725: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 726: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 727: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 728: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 729: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 730: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 731: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 732: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 733: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 734: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 735: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 736: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 737: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 738: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 9

RetainPictures Property Description Specifies whether pictures from the image document being processed are retained in the

output.

Available With

700

Page 739: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 740: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 741: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 742: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 743: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 744: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 745: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 746: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 747: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 748: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 749: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ShowOcrOptions Method

Returns Boolean.

Remarks The dialog box contains the following fields:

711

Page 750: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 751: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 752: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 9

OcrComplete Event Description Signals the completion of OCR processing.

Available With

Usage Sub object _OCRComplete

714

Page 753: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 754: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 755: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 756: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 757: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 758: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 759: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 760: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 761: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 762: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 763: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 764: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 765: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 766: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 767: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 10

Image PropertyDescription Returns or sets the name of the object to which you are scanning.

Available With

Usage object . Image

730

Page 768: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 769: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 770: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 771: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 10

Page Example — VC++This example shows how to insert a scanned page before page 1 of an existing image file.

void CNewscanDlg::OnInsertpage() { // This example shows how to insert a scanned page before page 1 of an // existing image. Use the ImgAdmin control to select a file for // display in the ImgEdit control. VARIANT vhWnd; V_VT(&vhWnd) = VT_I4; V_I4(&vhWnd) = (long)m_hWnd; ImgAdmin1.ShowFileDialog(0,vhWnd); // OpenDlg // 0 // Check to see if cancel was pressed. ImgEdit1.SetImage(ImgAdmin1.GetImage()); ImgEdit1.Display(); // For insert or append, set the Scan control’s Image property. ImgScan1.SetImage(ImgAdmin1.GetImage()); // Multipage must be set to True in order to create files with more // than one page. ImgScan1.SetMultiPage(TRUE); ImgScan1.SetPageOption(3); //InsertPages '3 ImgScan1.SetPage (1);

734

Page 772: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 773: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 774: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 775: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 776: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ScanTo Property

ScanTo PropertyDescription Returns or sets the destination of the image being scanned.

Available With

Usage object .

739

Page 777: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 778: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 779: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 780: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 781: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 782: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 783: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 784: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 785: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 10

See Also GetPageTypeCompressionInfo method, GetPageTypeCompressionType method, SetPageTypeCompressionOpts method.

GetCompressionPreference Example — VBThis example demonstrates how to read and retain all current compression settings. In the event that another application makes changes to these settings at runtime, the saved values can be restored.

Private Sub cmdGetCompression_Click() 'Option Base 1 Dim lngCompInfo(6) As Long Dim intCompType(6) As Integer Dim intCompPref, intImgType As Integer CompPref = ImgScan1.GetCompressionPreference 'Using intImgType to loop through 6 times (for each page type) and also 'as the input parameter to the methods. For intImgType = 1 To 6 intCompType(intImgType) = ➥ ImgScan1.GetPageTypeCompressionType(intImgType) lngCompInfo(intImgType) = ➥ ImgScan1.GetPageTypeCompressionInfo(intImgType) Next intImgTypeEnd Sub

GetCompressionPreference Example — VC++This example demonstrates how to read and retain all current compression settings. In the event that another application makes changes to these settings at runtime, the saved values can be restored.

void CNewscanDlg::OnGetcompression() { // Option Base 1 long lCompInfo[6]; long iCompType[6]; int iCompPref, iImgType; iCompPref = ImgScan1.GetCompressionPreference(); // Using intImgType to loop through 6 times (for each page type) and // also as input parameter to the methods. for(iImgType = 0; iImgType < 6 ; iImgType++) { iCompType[iImgType] = ➥ ImgScan1.GetPageTypeCompressionType(iImgType+1); lCompInfo[iImgType] = ➥ ImgScan1.GetPageTypeCompressionInfo(iImgType+1); }}

748

Page 786: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 787: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 788: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

GetPageTypeCompressionType Method

GetPageTypeCompressionInfo Example — VC++This example demonstrates how to read and retain all current compression settings. In the event that another application makes changes to these settings at runtime, the saved values can be restored.

void CNewscanDlg::OnGetcompression() { // Option Base 1 long lCompInfo[6]; long iCompType[6]; int iCompPref, iImgType; iCompPref = ImgScan1.GetCompressionPreference(); // Using intImgType to loop through 6 times (for each page type) // and also as the input parameter to the methods. for(iImgType = 0; iImgType < 6 ; iImgType++) { iCompType[iImgType] = ➥

751

Page 789: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 790: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 791: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 792: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 793: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 794: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 795: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 10

Case 2 If varScanImgType And IT_GRAY8 Then ImgScan1.SetScanCapability CAP_SCAN_IMAGE_TYPE, IT_GRAY8 Else MsgBox "Grayscale image type is not supported by your scanner" End If Case 3 If varScanImgType And IT_RGB Then ImgScan1.SetScanCapability CAP_SCAN_IMAGE_TYPE, IT_RGB Else MsgBox "Color image type is not supported by your scanner" End If End SelectEnd Sub

758

Page 796: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

OpenScanner Method

case 2: if(V_I4(&vScanImgType) & IT_GRAY8) { V_I2(&vCap)= IT_GRAY8; ImgScan1.SetScanCapability (CAP_SCAN_IMAGE_TYPE,vCap); } else AfxMessageBox ("Grayscale image type is not supported by your ➥ scanner");

759

Page 797: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 798: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 799: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 800: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ScannerAvailable Method

Returns Boolean.

Remarks This is done by checking the software (drivers and .dlls), not the hardware.

763

Page 801: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 802: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 803: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 804: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 805: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 806: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 807: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 808: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 809: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 810: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 811: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 812: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 813: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 814: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 815: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 816: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 817: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 818: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 819: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 820: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 821: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 822: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 11

ReadyState Property...................................................................803

ScrollDirection Property ..............................................................804

SelectedThumbCount Property................................................... 805

786

Page 823: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 824: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 825: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 826: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 827: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

BackColor Property

BackColor PropertyDescription Returns or sets the background color of the entire control.

Available With

Usage object

791

Page 828: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 829: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 830: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 831: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 832: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 833: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 834: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 835: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 836: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 837: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 838: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 839: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

ReadyState Property

MousePointer Example — VBThis example shows how to set a custom mouse pointer for the control.

Private Sub cmdChangeMouse_Click() Dim strMIcon As String strMIcon = "C:\Program Files\DevStudio\VB\samples\PGuide\Optimize

803

Page 840: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 841: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 842: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 843: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 844: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 845: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 846: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 847: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 848: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 849: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 850: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 851: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 852: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 853: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 854: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 855: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 856: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 11

ImgThumbnail1.DeleteThumbs i, 1 iPagesDeleted = iPagesDeleted + 1 End If Next i 'Display a message regarding the status of the delete attempt. If iPagesDeleted <> ThumbsToDelete Then

820

Page 857: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 858: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 859: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 860: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 861: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 862: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 863: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 864: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 865: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 866: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 867: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 868: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 11

InsertThumbs Example — VBThis example demonstrates how the Thumbnail control can be updated when images are dropped onto it. A message box is displayed detailing the source file and pages as well as the

832

Page 869: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 870: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 871: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 872: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Chapter 11

ScrollThumbs MethodDescription Specifies a direction and amount for scrolling.

Available With

Usage object . ScrollThumbs (

836

Page 873: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 874: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 875: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 876: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 877: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 878: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 879: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 880: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 881: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 882: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 883: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 884: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 885: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Standard Events (Thumbnail Control)

Private Sub cmdControlSize_Click() Dim lMinSize, lMaxSize, lVSize, lHSize As Long Dim bScroll As Boolean Dim iNonScrollThumbCount As Long bScroll = True iNonScrollThumbCount = 2 'Number of thumbnails desired in 'non-scrolling direction. ImgThumbnail1.ScrollDirection = Horizontal ImgThumbnail1.

849

Page 886: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 887: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 888: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 889: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 890: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 891: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 892: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Imaging ActiveX Sample Applications

Sample ApplicationsThis section describes the Imaging ActiveX sample applications.

The code in each sample application is highly organized, commented,

857

Page 893: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Appendix A

prevent the top and bottom of the splitter bar from being visible as you drag it. See the code within the kdkImgEdit1_DragDrop and kdkImgThumbnail1_DragDrop

858

Page 894: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 895: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 896: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 897: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 898: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 899: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 900: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 901: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 902: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 903: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 904: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 905: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 906: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Appendix C

Extender Properties, Methods, and Events of the Image Admin Control

MicrosoftProducts

Eastman SoftwareProducts

COMPONENT Win 95 NT 4.0 Win 98 NT 5.0 Pro 1.0 Pro 1.1 Pro 2.0

PROPERTIES

Index RO RO RO RO RO RO RO

Name RT RO

RT RO

RT RO

RT RO RTRO

RT RO

RT RO

Object RO RO RO RO RO RO RO

Parent RO RO RO RO RO RO RO

Tag A A A A A A A

METHODS

No Methods

EVENTS

No Events

872

Page 907: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 908: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 909: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 910: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 911: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Imaging ActiveX Controls Summary

Image Edit ControlThis table lists the properties, methods, and events of the Image Edit control by product version.

Microsoft

877

Page 912: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 913: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 914: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 915: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 916: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 917: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 918: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 919: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 920: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 921: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 922: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 923: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 924: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 925: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 926: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 927: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 928: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Appendix C

Image Scan Control (continued)

MicrosoftProducts

Eastman SoftwareProducts

COMPONENT Win 95 NT 4.0 Win 98 NT 5.0 Pro 1.0 Pro 1.1 Pro 2.0

METHODS

894

Page 929: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 930: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 931: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 932: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 933: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 934: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 935: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Imaging ActiveX Controls Summary

Image Thumbnail Control (continued)

MicrosoftProducts

Eastman SoftwareProducts

COMPONENT Win 95 NT 4.0 Win 98 NT 5.0 Pro 1.0 Pro 1.1 Pro 2.0

901

Page 936: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 937: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 938: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 939: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 940: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 941: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 942: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 943: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 944: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 945: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 946: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 947: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 948: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 949: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 950: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Imaging ActiveX Tips and Tricks

If users want to include graphics in the OCR results, set the AnnotationOcrType property to wiOcrTypePicture (literal

917

Page 951: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

IndexSymbols

_DImgAdmin 239_DImgAnnTool 239_DImgEdit 239_DImgocr 239_DImgScan 239_DImgThumbnail 239

Page 952: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 953: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 954: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 955: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 956: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Index

DragHand 857f_InitializeApp 45logging onto server 173, 181, 189OCR 861Page with Header 859

924

Page 957: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 958: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 959: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 960: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 961: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 962: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 963: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 964: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM

Index

Image Scan 161Image Thumbnail 161ImageScaleHeight 120ImageScaleWidth 120ImageView 35, 36

932

Page 965: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 966: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM
Page 967: Imaging Professional Developer Guide - OpenText · Title: Imaging Professional Developer Guide Author: Eastman Software, Inc. Created Date: 3/4/1999 11:14:37 AM