Sample Code for Global 360 Imaging for Windows
 
Using the ActiveX Controls in Visual Basic
 

DevGuideSampleCode
Contains a complete copy of all sample code found on the Global 360 Imaging for Windows release media. Note that this sample code is write protected. Before you can edit any of the projects included, you will need to unselect the "Read Only" attribute/property for all of the files in that project.

ImgAutomationDemo
Demonstrates how to:
Instantiate the Imaging application and viewer objects, via automation. Size and display an image file in the viewer object. Close the application and viewer object, releasing all resources used.

ImgClipboardOCR
Demonstrates how to:
Workaround a known defect in the ImgOCR control. The ImgOCR control does not perform correctly when OCRing a multipage TIFF file to the clipboard. After OCRing a multipage TIFF file to the clipboard, only the last page of TIFF/OCR data is retained/available. To workaround this problem, convert the file to be OCRed into single page TIFF files, then perform the OCR operation one page at a time, on the single page TIFF files.

FlowImageToDB
Demonstrates how to:
Use a flow to catalog scanned images in a Access Database by monitoring an input folder and spawning an executable every time an image is written. Flow passes the filename and path as command line arguments to the executable, the executable writes these values to the Access Database.

ImgRenameImages
Demonstrates how to:
Display a blank image and an image file in an ImgEdit control. Perform basic file manipulation by erasing and renaming local image files.

ImgShowAnnoType
Demonstrates how to:
Determine the type of the currently selected annotation mark by using the value passed in the MarkType parameter of the MarkSelect event of the ImgEdit control.

ImgUndoLevels
Demonstrates how to:
Use the UndoLevels property of the ImgEdit control to undo an image modification. Avoid a potential memory leak in you applications, caused by failing to clear the UndoLevels property of the ImgEdit control before unloading a form containing this control.

 
Using the Com Object in Visual Basic

ImgCopyFileViaSAO
Demonstrates how to:
Copy an image file from a local or 1.x Image Server source location to a local or 1.x Image Server destination location using both the SaveAs method of the ImgEdit control and the CopyFile method of the Server Access Object. The side-by-side comparison provides a simple examination of the differences between the two methods of handling image files.

SAO_SampleVB
Demonstrates how to:
Add the server access object to you program. Initialize the server access object. Use some of the object's properties and methods. Clean up resources after you are done using the object.

 
Using the ActiveX Controls in Visual C++

CImgQuerySample
Demonstrates how to:
Use the ImgQuery method of the ImgAdmin control to query a 1.x Image Server. Shows how to enumerate the resulting collection object returned from the query and populate a listbox with string data.

 
Copyright 2000 - 2006 Global 360, Inc.