If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Character formatting with protected document
Howdy folks, I need to allow character level styles such as bold, italic, etc and enable this functionality through the standard formatting toolbar. I also need to lock down styles so that users to accidentally add new styles. I have tried the following approach creating a MyStyles.dot file with my custom styles and locating it in C:\Documents and Settings\Chris\Application Data\Microsoft\Templates.
I then open my boilerplate doc meant for end-users to edit. Change the document template from Normal.dot to MyStyles.dot. Now my special styles are available in the boilerplate. Trouble is, end users can add styles inadvertently and can use styles based on Normal.dot still. Locking down styles by using Protect document disables character level formatting. Any suggestions? |
#2
|
|||
|
|||
Character formatting with protected document
Hi Chris
In versions of Word up to 2002, pretty much your only solution is a set of macros to intercept the Save, SaveAs, Print, and Close commands. Each macro needs to check the document for "unauthorized" styles and disallow the operation until they're removed. See http://word.mvps.org/FAQs/MacrosVBA/...tSavePrint.htm for a discussion, and come back here if you can't figure it out. Word 2003 has a new feature that lets you specifically "protect the document for styles" (it isn't called that, but that's the effect). You can specify in the template the exact set of styles that can be applied, and the user can't get to any others or create their own. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Chris Baca wrote: Howdy folks, I need to allow character level styles such as bold, italic, etc and enable this functionality through the standard formatting toolbar. I also need to lock down styles so that users to accidentally add new styles. I have tried the following approach creating a MyStyles.dot file with my custom styles and locating it in C:\Documents and Settings\Chris\Application Data\Microsoft\Templates. I then open my boilerplate doc meant for end-users to edit. Change the document template from Normal.dot to MyStyles.dot. Now my special styles are available in the boilerplate. Trouble is, end users can add styles inadvertently and can use styles based on Normal.dot still. Locking down styles by using Protect document disables character level formatting. Any suggestions? |
Thread Tools | |
Display Modes | |
|
|