Dev Guide
Dev Guide
Developer’s Guide
Example 32
The Automation From Excel Project 32
v
Contents
Visible Property 52
WebToolBarVisible Property 53
Width Property 53
Zoom Property 53
Application Object Methods 54
CreateImageViewerObject Method 54
FitTo Method 54
vi
Contents
viii
Contents
ix
Contents
xi
About This Guide
Purpose
The Developer’s Guide describes the features of eiStream Imaging
for Windows® and provides software developers and MIS
professionals with the infor
xiv
About This Guide
xv
About Imaging
Imaging Preview
Imaging Preview is a lean version of the Imaging application. It lets users
3
About Imaging
7
Chapter 1
8
About Imaging
time. Set the appropriate properties or provide end users with drag-and-
drop capability so they can select
9
About Imaging
11
Chapter 1
12
About Imaging
13
Chapter 1
14
2
Chapter 2
20
Adding Imaging Using Automation
Chapter 2
PageRange Object
The PageRange object represents a range of consecutive pages within an
ImageFile object — starting at the
22
Adding Imaging Using Automation
23
Chapter 2
24
Adding Imaging Using Automation
One Page
29
Chapter 2
Then, the
36
Adding Imaging Using Automation
41
Chapter 3
Automation Lexicon
45
Automation Lexicon
Remarks The DisplayScaleAlgorithm value can be specified before or after an image is displayed. The
47
Chapter 3
Height Property
Description Sets or returns the distance, in pixels, between the top and bottom edge of the Application
object’s window. This is a read/write property.
Usage ApplicationObject.Height [=value]
Data Type Long.
Remarks This property must be set prior to opening the ImageFile object. It only takes effect if the
Width
48
Chapter 3
Top Property
Description
52
Automation Lexicon
WebToolBarVisible Property
Description Sets or returns the visibility of this Application object’s web toolbar. This is a read/write
53
Automation Lexicon
Setting Description
1 Best fit
2 Fit to width
3 Fit to height
4 Actual size
Help Method
Description Displays the Imaging online Help table of contents.
Usage ApplicationObject.Help
Quit Method
Description Closes all open objects and exits the application. The Application object is no longer active
or available.
Usage ApplicationObject.Quit
55
Chapter 3
ImageFile Object
An ImageFile object represents an image file. An ImageFile object can have
■ One Page object, representing the currentl
56
Automation Lexicon
57
Automation Lexicon
59
Chapter 3
AppendExistingPages Method
Description Appends specified page(s) to the end of the current ImageFile object. If the page(s) being
60
Automation Lexicon
65
Chapter 3
66
Automation Lexicon
Height Property
Description Returns this page’s height in pixels. This is a read-only property.
Usage PageObject.Height
Data Type Long.
Example 'This example returns this page's height in pixels.
x = Img.Pages(1).Height
ImageResolutionX Property
Description Sets or returns this page’s horizontal resolution, in dots-per-inch. An error occurs when a
value less than 20 or greater than 1200 dpi is specified. This is a read/write property.
Usage PageObject.
71
Chapter 3
Automation Lexicon
73
Chapter 3
74
Automation Lexicon
Chapter 3
76
Chapter 3
78
Chapter 4
Visual Basic
82
Chapter 4
84
Chapter 4
86
Adding Imaging Using ActiveX Controls
Visual C++
There are two ways to access the Imaging ActiveX Controls on-line help
87
Chapter 4
Demonstration Projects
This section demonstrates
how to add a variety of
Imaging functions to your
applications.
A wide-ranging discussion of
every Imaging function is
beyond the scope of this
90
Adding Imaging Using ActiveX Controls
91
Chapter 4
92
Chapter 4
96
Adding Imaging Using ActiveX Controls
97
Chapter 4
Example
Users of your application may want to change the compression type to
save disk space.
Scenario
98
Chapter 4
100
Chapter 4
102
Chapter 4
Example
106
Chapter 4
108
Adding Imaging Using ActiveX Controls
111
Adding Imaging Using ActiveX Controls
113
Chapter 4
114
Chapter 4
116
Adding Imaging Using ActiveX Controls
117
Adding Imaging Using ActiveX Controls
119
Chapter 4
120
Adding Imaging Using ActiveX Controls
121
Chapter 4
122
Adding Imaging Using ActiveX Controls
123
Chapter 4
■ Click Select Scanner to select the scanner you want to use. The
mnuSelectScanner_Click() event in the
124
Chapter 4
128
Chapter 4
130
Chapter 4
Adding Imaging Using ActiveX Controls
133
Chapter 4
134
Adding Imaging Using ActiveX Controls
135
Adding Imaging Using ActiveX Controls
137
Chapter 4
Adding Imaging Using ActiveX Controls
139
Adding Imaging Using ActiveX Controls
Chapter 4
142
Chapter 4
144
Chapter 4
146
5
Developing Client/Server Applications
Chapter 5
160
Developing Client/Server Applications
The following sections explain each server option setting and related
property in detail.
161
Chapter 5
Admin control. Each of these methods creates a new image file with a
162
Chapter 5
164
Chapter 5
Once users select the desired directory or folder, the area below the
Look in box lists the files or documents contained within it, as illustrated
in the following figure.
When users select the desired file or document and then click
168
Developing Client/Server Applications
171
Chapter 5
172
Chapter 5
You can also bypass the dialog box and simply pass the user name and
password as parameters to the LoginToServer method, most likely in
response to a user completing and closing a logon dialog box of your
own design.
174
Developing Client/Server Applications
Chapter 5
Annotations Defined
The Image Edit and Image Annotation Tool Button controls provide
several ways to add annotation functions to your image-enabled
applications. Using them you can:
■ Create an annotation tool palette of your own design.
■ Invoke a single method that displays a fully-functional, standard
annotation tool palette to your users.
■ Implement custom annotations programmatically.
The method you choose depends on the annotation 0.g 48e7(m)ta0 depend1cendl4 b(ancenh2no)5.6
178
Chapter 5
180
Developing Client/Server Applications
181
Chapter 5
182
Developing Client/Server Applications
183
Developing Client/Server Applications
187
Chapter 5
188
Developing Client/Server Applications
Developing Client/Server Applications
195
Chapter 5
196
Developing Client/Server Applications
199
Chapter 5
200
Developing Client/Server Applications
Chapter 5
202
Developing Client/Server Applications
203
Developing Client/Server Applications
205
Chapter 5
206
Chapter 5
208
Chapter 5
lstResults.Clear
'------------------------------------------------------------
' Perform a query; store Doc names in the lstResults listbox.
'------------------------------------------------------------
If optQuery(0).Value = True Then 'Query by Document
mstrQuery = "finddocs document " & _
cboName.List(cboName.ListIndex) & " " & txtName.Text
End Sub
210
A
Imaging ActiveX Sample Applications
This appendix describes the Imaging ActiveX sample applications that
are available on the media on which your software was distributed.
In This Appendix
Overview ................................................................................... 216
Appendix A
Overview
This section introduces you The Imaging ActiveX sample applications are relatively large Visual Basic
to the Imaging ActiveX projects that demonstrate how to use the Imaging ActiveX controls to
sample applications.
build comprehensive and useful, image-enabled applications.
It is beyond the scope of this appendix to walk you through each and
every application. eiStream WMS, Inc. suggests that you run each one
and analyze its code to determine whether you can use it:
■ Directly in your applications, or
■ As a guide to writing your own, related code.
Requirements
With the exception of the sample application, to compile and run the
Imaging ActiveX sample applications, you must use:
■ Microsoft Visual Basic 6.0.
■ Imaging for Windows.
To compile and run the sample application, you must use:
■ Microsoft Visual Basic 6.0 with Service Pack 3 or later.
■
216
Imaging ActiveX Sample Applications
219
Appendix A
220
Appendix B
224
Imaging ActiveX Tips and Tricks
225
Appendix B
228
Imaging ActiveX Tips and Tricks
229
Imaging ActiveX Tips and Tricks
231