| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Jun 24, 2017
|DOCSTAMP - "Document Stamper" - Quickly toggle a document stamp ON or OFF|
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
The Document stamper.wcm 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.)
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