Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-09-28
5
Medium Priority
?
4,383 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 2000 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

610 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