Description Opens an image file in the parent application window. This associates an image file with the ImageFile object. If a file is currently open, it should be closed before a new file is opened. (See Close Method).
Note: This method is not available when application is running as an embedded server.
The Imaging application has the focus after an Open. You can reset focus programmatically after an Open, if desired.
Syntax ImageFileObject.Open [imagefile][, annotationflag][, pagenumber]
[, dialogflag](ImageFile,[IncludeAnnotation],[Page],[DisplayUIFlag])
Remarks The Open method uses these parameterts:
PartParameter | Data Type | Description |
imagefileImageFile | String | Name string of ImageFile object to open |
annotationflagIncludeAnnotation | Flag | True (Default)— Image has annotations that are displayed |
False — Image has annotations that are not displayed If True, if the image has annotations, the annotations are displayed. If False, if the image has annotations, the image is displayed without the annotations. The default is True. | ||
pagenumberPage | Long | Page number in the image file to display . — This parameter must be a constant, or use the ActivePage property to specify the page that you want displayed when you open the file. |
dialogflagDisplayUIFlag | Flag | True — Displays a dialog box that allows the end-user to select a file to open False (Default) — Does not display a dialog box |
If True, displays a dialog box that allows the end-user to select a file to open. The default is False.
ExamplesThis example opens an image file named 5page.tif:
Img.Open "C:\images\5page.tif"
This example opens the same file to page 4 with annotations displayed:
Img.Open "C:\images\5page.tif",TRUE,4
This example opens a dialog box so the user can select a file to open:
Img.Open "",,,TRUE
This example opens an Imaging Server 1.x file.
Img.Open "Image://nqa11\SYS:\tmp\3PAGES.tif",
TRUE, 1
This example opens an Imaging Server 1.x document.
Img.Open "Image://PATRIOTS\CABINET\DRAWER\FOLDER\doc1"
This example opens an Imaging Server 3.x document.
Img.Open"Imagex://sixpage"
See Also ApplicationObject.Edit