Event Notifications.NewAnnotAdded doesn't fire in Build 214

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

KarlTH
User
Posts: 57
Joined: Mon Aug 01, 2005 2:33 pm

Event Notifications.NewAnnotAdded doesn't fire in Build 214

Post by KarlTH »

Dear Tracker-Support,

today I tested the new PDF-XChange Viewer ActiveX SDK, version 2.5 (Build 214.2) and recognized that the Event Notifications.NewAnnotAdded doesn't fire anymore. In previous versions it worked!
Have there be something changed or is it a bug?

Code: Select all

 ''' -----------------------------------------------------------------------------
    Private Sub PDFXCViewer_OnEvent(sender As Object, e As AxPDFXCviewAxLib._IPDFXCviewEvents_OnEventEvent) Handles PDFXCViewer.OnEvent

            Select Case e.name.ToLower
                Case "notifications.newannotadded"
                        Debug.WriteLine(e.name)
            End Select
    End Sub

Best regards,

Karl
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Event Notifications.NewAnnotAdded doesn't fire in Build

Post by Stefan - PDF-XChange »

Hi Karl,

You need to enable this type of notification in your code before the Notification events can be fired as it is off by default:

Code: Select all

SetProperty("Notifications.NewAnnotAdded.Enabled", 1, 0);
Regards,
Stefan
KarlTH
User
Posts: 57
Joined: Mon Aug 01, 2005 2:33 pm

Re: Event Notifications.NewAnnotAdded doesn't fire in Build

Post by KarlTH »

Hello Stefan,

thank you very much! That was it! :D
But why was the event enabled in the previous versions and now is disabled?


Best regards,

Karl
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Event Notifications.NewAnnotAdded doesn't fire in Build

Post by Stefan - PDF-XChange »

Hi Karl,

I think it's been disabled by default since the build it was introduced in. But glad to hear it is working now.

Regards,
Stefan
KarlTH
User
Posts: 57
Joined: Mon Aug 01, 2005 2:33 pm

Re: Event Notifications.NewAnnotAdded doesn't fire in Build

Post by KarlTH »

Hello Stefan,

I am wondering about that it was disabled by default :?: in previous versions but I got very fast support from you and that's what important. :wink:


Thank you!

Karl
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Event Notifications.NewAnnotAdded doesn't fire in Build

Post by Stefan - PDF-XChange »

;)