Solved

How do you hide the content control placeholder text when printing?

Posted on 2011-09-28
5
3,601 Views
Last Modified: 2013-11-10
I'm creating templates using content controls and I would like to have the placeholder text not print.

What I don't understand is that the placeholder text uses a built in style 'Placeholder Text (Always Hidden)' using a style Hidden. But what does Hidden actually do? It doesn't hide when printing and it only shows the text as greyed out.

I did see a possible solution of setting the placeholder text font to hidden but that would mean that the users Word settings would require that hidden text be displayed which I don't want.

Is there a way to do this?

Thanks
0
Comment
Question by:Sidcom
  • 3
5 Comments
 
LVL 21

Accepted Solution

by:
EricFletcher earned 500 total points
Comment Utility
The "Hidden" in the style definition means that the style name is hidden in lists unless you explicitly change the setting.

As you note, changing the style's definition to Font=Hidden would do what you want but would force users to have the hidden text displayed to see it. You could also use Font color=White to make the text disappear -- but of course that would make it even more invisible for users.

One possible way to overcome that could be to alter the Print command (via VBA) for the document so that it redefines the style, then brings up the print dialog, then resets the style back to the standard settings.
0
 

Author Comment

by:Sidcom
Comment Utility
Thanks,

I'll just have to do that then. One thing I was thinking was to just add a space into the text value before printing then clear it after (where content controls currently have no text).

Odd that this hasn't been thought through by MS...
0
 
LVL 21

Expert Comment

by:EricFletcher
Comment Utility
Yes, I agree. Too bad there isn't a way to automatically designate specific styles for "don't print". I use character styles for answers for quizzes so I can set them as hidden text for students, but left as printable text for a teacher version.
0
 

Expert Comment

by:WhiteLeave
Comment Utility
Keep in mind, that there is no possibility to override the PrintCommand in Word 2010. This possiblity ended with Word 2007. -> used to be FilePrint.
Thank you Microsoft!
0
 
LVL 21

Expert Comment

by:EricFletcher
Comment Utility
Seriously? I don't have access to Word right now (iPhone) but I would want to test that. If true, it would mean that many VBA procedures already written would stop working.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now