Resetting a "modified" property of a document

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

anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

Resetting a "modified" property of a document

Post by anti_g »

Hi,

how can I prevent OnDisplayPrompt with "Prompts.ConfirmDocumentSave" from firing on a modified document? Is there a possibility of resetting "document_modified" flag (I don't know how the property is called)?

Thanks,
Anton.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Resetting a "modified" property of a document

Post by Corwin - Tracker Sup »

Hello Anton,

You can do this by using next code:

Code: Select all

Call CoPDFXCview1.SetDocumentProperty(nActiveDocID, "Modified", 0, 0)
HTH