Before and After Events

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

espens
User
Posts: 45
Joined: Wed Jan 14, 2009 7:31 am

Before and After Events

Post by espens »

Any chance to intercept the file open event and cancel it? Basically I want to prevent the user from Dragging and Dropping a document from explorer and onto the viewer. Would also be beneficial to prevent the user from printing a document.

Regards
Espen
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Before and After Events

Post by Vasyl - PDF-XChange »

New property will be added into the next build:
"General.DenyOpenDocumentsWhenDrop"
Also, for prevent print operation you can turn off command:
SetProperty("Commands["Print"].State", "Offline", 0);
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.