nsacharter.blogg.se

Word document not printing text
Word document not printing text







word document not printing text

'Intercepts the Word 2007/2010/2013 Quick Print commands 'Prevent triggering a duplicate print in the class modules (Word 2010/2013)ĪctiveDocument.PrintOut Background:=False 'Intercepts the Word 2007 Menu>Print>Print commandĪctiveDocument.Styles("Placeholder Text").Font.Hidden = True 'Delayed call from class Word 2010/2013 onlyĪctiveDocument.Styles("Placeholder Text").Font.Hidden = False 'Initialize variable and class (Word 2010/2013 only) when Word starts Public p_bInPreviewPrintEditMode As Boolean

word document not printing text

  • Paste the following code in the class module.
  • Some elements (e.g., the class module) is not required for Word 2007. The method is developed for Word 2010, but includes all necessary code for Word 20 users.

    word document not printing text

    The Normal project is project associated with the Normal template. Rename the class module "clsPrint." Rename the standard module any meaningful name.

  • Using the VBE Insert menu, insert a class module and a standard module in the Normal project.
  • Open Word, open the VB Editor (VBE) (i.e., press ALT+F11) and open the Normal project.
  • This can of course be done manually if you have a willing group of form users, but an automated process requires a VBA solution. PrintHiddenText property to false and print the document the PHT text will not be printed. Hidden to true, set the application options. If you temporarily set the Placeholder text style font property. Placeholder text, like most text in Word, is defined by a style.

    word document not printing text

    The first method employs the application event "DocumentBeforePrint," repurposed Print commands and a temporary modification of the document's Placeholder text style. Method I - Detect Events/Intercept Commands/Modify PHT Style There is no option in Word to exclude printing content control PHT, and without an intensive form validation process, you can't make the user fill out each field.Įach of the automated solutions provided require VBA which means the template and form documents must be macro enabled (i.e. Unfortunately there isn't a simple solution. Representation of a printed document with bubble added for emphasis









    Word document not printing text