Annotation Manager and Reload Annotation

Discussions about annotation support.
Post Reply
ahmad1987
Posts: 11
Joined: Sat Jun 02, 2012 10:41 pm

Annotation Manager and Reload Annotation

Post by ahmad1987 » Tue Jul 10, 2012 10:01 am

Hi,

I had the following code that was working when i was using gd picture 8

Code: Select all

 _AnnotationManager = New AnnotationManager
                    _AnnotationManager.InitFromGdViewer(gdPicEdit)
                    _AnnotationManager.SelectPage(CurrentPage)

                    For Each item In AnnRows
                        AddAnnotationsToView(item)
                    Next

                    _AnnotationManager.Close()
                    gdPicEdit.ReloadAnnotations()
where AddAnnotationsToView is a fucntion that adds the annotations to the _AnnotationManager , and once ReloadAnnotations() is called, the changes are reflected in gdPicEdit (gdViewer)

but when i moved to GdPicture 9 the above code stopped working when calling ReloadAnnotations(), i checked it through the following, before the call to close() i check the value returned by GetAnnotationCount in _AnnotationManager which was as expected but when i call ReloadAnnotations() and check GetAnnotationCount () in GdViewer, it returns zero(incorrect)

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Annotation Manager and Reload Annotation

Post by Loïc » Tue Jul 10, 2012 3:21 pm

Hello,

I can't do anything with this snippet. Could you try to reproduce the issue in a standalone application or provide code that can be used "as is" ?

Kind regards,

Loïc

ahmad1987
Posts: 11
Joined: Sat Jun 02, 2012 10:41 pm

Re: Annotation Manager and Reload Annotation

Post by ahmad1987 » Wed Jul 11, 2012 8:34 am

Dear Sir,

Please find the attached project, i used gdpicture 9, after loading a tiff file then clicking on the Use Annotation Manager button,
you will find that the annotation was added to the manager but wasn't added to the viewer.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Annotation Manager and Reload Annotation

Post by Loïc » Wed Jul 11, 2012 11:37 am

Hello,

We had to remove the attached file because it was including your license key!

Please try to remember to don't publish it again on a public forum...

I am investigation the issue.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Annotation Manager and Reload Annotation

Post by Loïc » Wed Jul 11, 2012 11:42 am

OK,

before:

Code: Select all

_AnnManager.Close();
Please add:

Code: Select all

_AnnManager.SaveAnnotationsToPage();
Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest