Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Oct 25, 2016 11:35 am

Hi Team,

I want to integrate document editing feature in my ASP.NET MVC Web Application which prevents editing of the some selected portion for the provided doc. Please let me know how this can be done using Spire tools.


Thanks,
Ajay

ajay.vekariya
 
Posts: 1
Joined: Tue Oct 25, 2016 10:55 am

Wed Oct 26, 2016 3:05 am

Hi Ajay,

Thanks for your inquiry.
Sorry that at present Spire.Doc doesn't support to prevent editing of the some selected portion. But we have added this new feature into our schedule. We will inform you when it is done.
Sorry for inconvenience.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 19, 2019 8:39 am

Hi,

Thanks for waiting.
Please refer to following code to prevent editing of the some selected portion.
Code: Select all
            //Specify the range which could be edited, the rest is protected
            section.Paragraphs[0].ChildObjects.Insert(0, new PermissionStart(document, "myP"));
            section.Paragraphs[1].ChildObjects.Add(new PermissionEnd(document, "myP"));
            document.Protect(ProtectionType.AllowOnlyReading, "111");


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Feb 28, 2019 8:06 am

Hi,

Greetings from E-iceblue.
Has your issue been resolved? Could you please give us some feedback at your convenience?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc