Table of Contents
Problem
Hidden text is being printed or transferred to another document form such as PDF files.
Answer
You need to turn off the Microsoft Word Options that allow the display of hidden text on the documents. If you can see the text then it will get printed. You can also turn off the display of hidden text manually using Word’s options panel.
Code Solutions
var tempWordHiddenTextSetting = word_app.Options.PrintHiddenText;
if (tempWordHiddenTextSetting)
{
word_app.Options.PrintHiddenText = false;
}
References:
https://msdn.microsoft.com/en-us/vba/word-vba/articles/options-printhiddentext-property-word
https://wordribbon.tips.net/T010510_Printing_Hidden_Text.html