#1
|
|||
|
|||
Document properties driving sections in template
Is there a way to have sections display/hide based on a boolean or text field in the document properties?
I have been able to use the ImportFragment function to take a couple of templates and import them but i'm not getting the results that are desired. Ok that was kind of a high level and vague description of what i am looking for. More details: I have a SharePoint workflow that allows users to select what sections they want in a template. After they click check boxes for a "Clarifications and Conditions" section or certain appendices, those results are promoted to the Word documents server properties. From there, i am hoping to either construct the template based on the users responses and a function like ImportFragment or use some type of VBA to hide sections if the check box was not selected. Is this possible and am i going about it the wrong way? Thanks in advance and let me know if any more details would help clarify the scenario. |
#2
|
||||
|
||||
You could use an IF field to conditionally display content based on a DOCPROPERTY value. For example:
{IF{DOCPROPERTY MyProp}= 1 "Some content" "Some other content"} However, that content remains within the field unless you unlink it (which you could do with a macro). You should also consider using custom Quick Parts instead of DOCPROPERTY fields and the like.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
document properties, sharepoint 2010, word 2010 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Code to Create & Format Document Sections | sleake | Word | 6 | 04-26-2012 04:14 AM |
Add custom document properties into document | NicBodkin | Word | 8 | 05-05-2011 09:09 AM |
Printing Sections of a Word Document | Andy Jenkinson | Word | 4 | 02-12-2010 02:53 AM |
Document with selective sections printing | krismason | Word | 0 | 07-09-2009 03:30 AM |
document properties issues | charris1980 | Word | 0 | 04-29-2009 12:49 PM |