We are developing custom LF program which has includes a simple Annotation module.
The code runs good and creates the annotation, but the annotation is not visible on the page. (see below screen shot)
Here is the Annotation snippet,
' Retrieves document pages object.
Dim DocPages As LFDocumentPages = Doc.Pages
' Retrieves the first page of the document.
Dim PageOne As LFPage = DocPages.Item(1)
' Get a write lock on the page.
PageOne.LockObject(Lock_Type.LOCK_TYPE_WRITE)
Doc.LockObject(Lock_Type.LOCK_TYPE_WRITE)
Dim sticky2 As LFStampAnnotation = PageOne.AddAnnotation(Annotation_Type.ANN_STAMP)
''sticky2.Import(".\bitmap\" & FileName & ".BMP")
sticky2.Import(".\bitmap\1.bmp")
'' Dim sticky As LFStickyNote = selectedPage.AddStickyNote()
'Save your changes.
PageOne.Update()
Doc.Update()
'Unlock the page.
PageOne.UnlockObject()
Doc.UnlockObject()
Doc.Dispose()
Please help us to move forward with this project.