Solved

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

Posted on 2011-09-28
5
4,018 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 21

Accepted Solution

by:
Eric Fletcher earned 500 total points
ID: 36948769
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
ID: 36959506
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:Eric Fletcher
ID: 36959525
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
ID: 37767862
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:Eric Fletcher
ID: 37792515
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

717 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