Event missing: Notifications.BeforeCloseDoc

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

cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Event missing: Notifications.BeforeCloseDoc

Post by cew »

Hi,

I have to react if the user wants to close a document and be able to stop closing.
Is there an event like Notifications.BeforeCloseDoc?

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

Re: Event missing: Notifications.BeforeCloseDoc

Post by Stefan - PDF-XChange »

Hello cew,

Or you could just disable the close command :)

Have a look at Section
3.5 How to Disable a Command?
In the Viewer AX SDK Manual for details.

Best,
Stefan
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Event missing: Notifications.BeforeCloseDoc

Post by cew »

Ok, that's not what I was looking for, but I can live with that "workaround"...

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

Re: Event missing: Notifications.BeforeCloseDoc

Post by Stefan - PDF-XChange »

Sorry Cew,

I just spoke with one of the devs and he confirmed that there is no better way.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Event missing: Notifications.BeforeCloseDoc

Post by Vasyl - PDF-XChange »

Hi, cew

We will add two new events into the new build (195):
Notifications.BeforeCloseDoc
Notifications.DocClosed

Look for details in the updated SDK-help.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Event missing: Notifications.BeforeCloseDoc

Post by cew »

GREAT SUPPORT!!!

Thank you!!


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

Re: Event missing: Notifications.BeforeCloseDoc

Post by Stefan - PDF-XChange »

:)