<< Click to Display Table of Contents >> EditProtection |
[Professional Edition and above]
The Visual Designer dycodoc can read and edit VPE Document files which have been created with the VPE Professional Edition or any higher edition.
If you want to protect your VPE Document files so they can not be read by dycodoc, call this function. In both cases - either if a document was opened using SwapFileName or if you call WriteDoc() - the created VPE document file will be protected.
Interactive Edition only: if the EditProtection is enabled, the interactive objects stored in VPE Document files are not editable within VPE, nor VPEView.
Once you have called this function, it is impossible to unprotect the document.
property EditProtection [integer] VPE.EditProtection
read / write; runtime only
ActiveX / VCL:
You must assign the value "1" to this property! Different values are reserved for future extensions. Do not assign any different value!
.NET:
possible values are:
enum EditProtection
{
Unprotected,
Protected
}
Default:
Unprotected (0) = the current document is not protected from being edited with dycodoc
Remarks:
Once you have assigned a value to this property, it is impossible to unprotect the document.
For security reasons, dycodoc can not read VPE Document files which have been created with any release prior to VPE v3.20.
Example:
ActiveX / VCL:
VPE.EditProtection = 1
VPE.WriteDoc("my_file.vpe")
.NET:
VPE.EditProtection = EditProtection.Protected
VPE.WriteDoc("my_file.vpe")
Activates the edit protection and writes the current document as protected file to disk.