Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Document Protection disables too much!?  Help!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
khalid - 13 Apr 2006 18:14 GMT
I am using the document protection method to programtically lock my document
and force the user to use specific styles.  Below are the options I am
setting:

- "No Changes (Read Only)" option.  And then giving everyone rights to
freely edit specific regions (xml nodes).
-Within "formatting restrictions" all styles are selected.

Here is my dilemma:  Once the document is protected at this level, a lot of
functionality are disabled including : track revisions features, italics,
bold, table properties, table cell alignment, table borders.

Is there a way that I can programtically enable  the above mentioned  
features which are now disabled?  (The toolbar menu disables each of these,
ideally I'd like to override that option and re-enable each of the above
toolbar menu options)

 Or is the only way to do this by effectively recreating these
functionalites through maybe the document action pane of a smart document?

Thank you very much in advance!!!
Cindy M  -WordMVP- - 20 Apr 2006 14:02 GMT
Hi =?Utf-8?B?a2hhbGlk?=,

> I am using the document protection method to programtically lock my document
> and force the user to use specific styles.  Below are the options I am
[quoted text clipped - 8 lines]
> bold, table properties, table cell alignment, table borders.
>  
Do you have a reason for activating "formatting restrictions"? That's what's
locking out the bold and italics. But if you're enabling all the styles, why
bother with activating this?

I also think you'll find that, if you select the portions of the document
people are allowed to change (such as the table), then the table properties,
cell alignment, etc. will be available.

If you're limiting people to only the lowest level XML nodes, and these are
within the table cells, then you will, indeed, need to provide the desired
functionality in the form of macro code. The macro would need to turn off
protection (Unprotect), carry out the desired actions, then reprotect.

> Is there a way that I can programtically enable  the above mentioned  
> features which are now disabled?  (The toolbar menu disables each of these,
[quoted text clipped - 3 lines]
>   Or is the only way to do this by effectively recreating these
> functionalites through maybe the document action pane of a smart document?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Word Heretic - 27 Apr 2006 12:02 GMT
G'day khalid <khalid@discussions.microsoft.com>,

Italics, bold - they are styles that can be added (emphasis and
strong)

Pass on the others, haven't played with it yet.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

khalid reckoned:

>I am using the document protection method to programtically lock my document
>and force the user to use specific styles.  Below are the options I am
[quoted text clipped - 17 lines]
>
>Thank you very much in advance!!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.