Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2017 by Barry MacDonnell. All Rights Reserved.

Page updated Mar 4, 2012

DOCSTAMP - "Document Stamper" - Quickly toggle a document stamp ON or OFF

Download DOCSTAMP.ZIP (v1.03; 08/27/11; 19,638 bytes)

Written in WordPerfect X5 but should be compatible with other versions.

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support

Macros with a similar purpose:

EdgeText - a macro that places a short block of text and (optionally) the date, time, and/or the filename at one of 8 places around the edge of the page, outside the page margins.

FilStamp - Places the filename at the bottom of Footer A or Footer B, or at the top of Header A or Header B, starting on page 1.

TextBord - Creates a page border composed of user-selected words.

See also: QuickWords for another way to insert items in a document.

PURPOSE and OPERATION

This macro will toggle the display of a user-specified document text stamp -- such as "DRAFT" or "COPY" -- on and off.

When the macro is played in a document it will display a menu (screen shot) -- and if this is the first time it is played in the current document it will create a new watermark that will include a special bookmark (Document_stamper). It then adds your desired text (e.g., "DRAFT" and -- optionally -- the date). Then it exits from the watermark back to the original cursor location.

The next time the macro is played in the same document, the macro will search for that bookmark. If the bookmark is found -- indicating that the stamp exists in that document -- the stamp and the watermark will be immediately deleted and the macro will exit.

Thus, the macro will act as a "toggle switch" to either create the stamp -- or if it was already created -- to delete the stamp.

By default, the macro will create the stamp's text inside a box that is inside a watermark. A box is used so that it can be placed outside page margins (you can choose the default location; see Modifications below).

The box will include your desired text and (optionally) the current system date as either a code (so that it changes with the system date) or as a text string (so that it remains the same as the date it was first created). If you choose to locate the stamp on the left or right side of the page, the text will be rotated so it appears parallel to the edge.

Also by default, the [Watermark] code is placed at the top of page 1 so that all pages of the document will display the watermark. This can be changed to start the watermark on the current page the cursor is on; see Modifications below.

[Note that subsequent watermarks of the same type (A or B) can override the display of the stamp, so you can choose which type to use for the stamp. See "Headers, Footers, and Watermarks - how to start, stop, suppress, change, replace, delay, overlay, and remove them" at http://wptoolbox.com/tips/HeadFootWM.html.]

If you have enabled View, Draft, the macro will pop up a message and ask if you wish to use Page mode, since Draft mode hides watermarks, headers, footers, etc., on your screen. (They still will print.)

MODIFICATIONS

The stamp's text choice(s), font size, location, rotation, type of date (i.e., no date, date as a code, or date as text), and other options (such as whether or not to display a small menu of choices) can be modified in the macro's User Modification Area. Just open the macro like any other WordPerfect document and follow the instructions at the top. Then click the Save & Compile button on the macro toolbar, or just click File, Save.

Not all available user options appear on the (optional) pop up menu.

NOTES and TIPS

  • The basic idea for this macro was to create a tool to quickly insert a document stamp and also quickly delete it if it is no longer needed -- i.e., to toggle the document stamp on and off with a mouse click or keyboard shortcut. However, by default a small dialog menu is set to pop up to let you change the text of the stamp, the watermark to use, etc. You can turn this feature off in the macro's User Modification Area to speed up the overall operation.
  • For convenience, you can assign the macro to a toolbar button or shortcut key (see http://wptoolbox.com/tips/EasyPlay.html).
  • By default, the macro uses Watermark B. This presumes that you do not need Watermark B for anything else! (If so, change to Watermark A on the macro's menu or -- more permanently -- in the macro's User Modification Area.)
  • The stamp's text will not be visible on your screen if the View menu item is set to Draft. To see it, change to Page or Two Page view. (It still will print.)
  • You can create several versions of this macro (each named differently) for different purposes. For example, one version might have the menu disabled and simply stamp your contact information in small print on every page. Or you could use one version to stamp an envelope appended to the document (with the cursor on the envelope page, set the start location to "Current page").
  • For other "stamp" macros, see http://wptoolbox.com/library/EdgeText.html, http://wptoolbox.com/library/Filstamp.html, http://wptoolbox.com/library/PrntCopy.html, and John Land's #WATERMK macro (on which some of the current macro is based).
  • You can always manually delete the specific [Watermark] code in Reveal Codes anytime to remove the stamp, but it should be easier and faster to just play the macro again.

Page Top