Image Viewer CP ActiveX Control

AddAnnFromTextFile

 

Import Annotation tags to single/multipage TIFF file from text file. You may use SaveAnn2TextFile method to export tags to text file first.
 

Public Function AddAnnFromTextFile(
    strTIFFfile As String, _
    iPageNo As Integer, _
    strAnnTextFile As String)

 

Parameter
strTIFFfile
the path of tiff file.

iPageNo
the page number of tiff file. The first index is zero.

strAnnTextFile
the path of text file that include annotations tags.


 Return Value
True- success, false -failed


Example

   

Visual Basic Syntax
ImageViewer1.SaveAnn2TextFile "c:\1.tif", 0, "c:\anntags.txt"
ImageViewer1.AddAnnFromTextFile "c:\new.tif", 0, "c:\anntags.txt" 'import the tags to another tiff file