VBA equivalent functions in DocIO

What is the equivalent function in DocIO for the following VBA code?

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone

'Selection.Editors(wdEditorEveryone).DeleteAll


ActiveDocument.Protect Password:="11", NoReset:=False, Type:= _
wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=False



2 Replies

AD Administrator Syncfusion Team May 21, 2008 05:17 AM UTC

any body home?



BP Bhuvaneswari P Syncfusion Team May 26, 2008 06:13 AM UTC

Hi Chong,

Thank you for your interest in Syncfusion products.

You can protect the by using ProtectionType of the document like AllowOnlyRevisions, AllowOnlyFormFields, AllowOnlyComments options. But we don't have support for Document.DeleteAllEditableRanges.

Please refer to the sample that we ship with Essential DocIO which could be found in the below location:

\Syncfusion\EssentialStudio\x.x.x.x\Windows\DocIO.Windows\Samples\2.0\Security\ProtectingDocument\cs

Please try this and let me know if this helps.

Best Regards,
Bhuvana



Loader.
Up arrow icon