Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Opening a single frame with annotations

  •  14 May 2008, 2:37 AM

    Opening a single frame with annotations

    I created a three-page TIFF image with annotations (using the DotAnnotate Demo).

    When I try to load only the second page (frameIndex=1) with the AnnotateViewer Open-Method an Exception is thrown. I tried it with MultipageAnnotateMode = True or False.

    What am I missing here?

     MyAnnotateViewer.Open( filename, 1, True )

    =>

    System.ArgumentOutOfRangeException

    Invalid index for this collection.
    Parametername: index

    Tatsächlicher Wert war 1.   at Atalasoft.Annotate.UI.LayerCollection.Insert(Int32 index, LayerAnnotation layer)

       at Atalasoft.Annotate.UI.Importers.XmpAnnotationImporter.LLImport(Int32 page)
       at Atalasoft.Annotate.UI.Importers.AnnotationImporter.Import(Int32 page)
       at Atalasoft.Annotate.UI.AnnotateViewer.ImportAnnotations(AnnotationImporter importer, Int32 frameIndex)
       at Atalasoft.Annotate.UI.AnnotateViewer.Open(Stream stream, Int32 frameIndex, Boolean loadAnnotations)
       at Atalasoft.Annotate.UI.AnnotateViewer.Open(String fileName, Int32 frameIndex, Boolean loadAnnotations)
     

     

    Filed under:
View Complete Thread