Document Read-only

Technical support for Spire.Doc

Moderator: iceblue support

Document Read-only

Postby Mortimer » Mon Jan 17, 2011 2:13 am

I have an important document which I want to make it be read-only. Can Spire.Doc support it?
Mortimer
 
Posts: 9
Joined: Thu Dec 23, 2010 2:45 am

Re: Document Read-only

Postby iceblue support » Mon Jan 17, 2011 11:09 am

Thank you for your inquiry!
You can realize it through Encrypt method with the following code: document.Encrypt("your password");
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am

Re: Document Read-only

Postby danielzborovski » Wed Jul 20, 2011 3:03 pm

Hi. Encrypt is NOT read only. Encrypt puts a password on the document that prevents anyone from opening it without the password. Is there any way to make it READ-ONLY, so that the document is not editable at all, but still viewable without a password?
danielzborovski
 
Posts: 3
Joined: Wed Jul 13, 2011 4:04 pm

Re: Document Read-only

Postby Justin Weng » Thu Jul 21, 2011 1:48 am

Dear danielzborovski,
Thanks for your inquiry.
You can use Protect() Method to do so.
Code: Select all
doc.Protect(ProtectionType.AllowOnlyFormFields);
Justin
Technical Support / Developer,
e-iceblue Support Team
User avatar
Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests