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-2010 by Barry MacDonnell. All Rights Reserved.

Page updated June 9, 2010
LINEBORDERS - Create a fixed, user-specified line border around pages outside page margins (or at any desired printable location)

Download LINEBORDERS.ZIP (version 1.01; 03/09/10; 13,665 bytes)

Compatible with WordPerfect X4 and probably earlier 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

To create a border made up of words strung together around the edges of the page, see TextBord.

To create a graphical page border with repeating graphic images (clipart, photos, etc.) using Corel Presentations, click here.

Purpose

This macro creates a line border (default is a single line, but it can be double, dashed, thick, etc.) outside the page margins or at any other specified location, around the perimeter of all pages (or just pages from the current page forward), according to the specifications of the user (see Modifications below).

WordPerfect's own Format, Page, Border/Fill does not extend very far beyond page margins (and can vary with changes in margins), whereas this macro can place a fixed border on all pages as near the edges of the paper as desired (and that the printer can print).

Screen shot of a sample page after playing the macro.

Method

The line border is created using a text box inside a watermark, so it will show up on the current and subsequent pages and in the user's desired dimensions without being impacted by any margin changes in the document. See Tips and Cautions below.

(For more on headers, footer, and watermarks and how to start, stop, suppress, change, replace, delay, overlay, and remove them, see here.)

Modifications

See the redlined User Modification Area in the macro's code (just open the macro like any WordPerfect document to view or edit it). You can specify -

  • the watermark to use (WatermarkB is the default, but see Caution below if you use Legal Pleadings);
  • where to start the watermark (top of document or current page);
  • the space around the perimeter of the border (spacing for each of the four border lines can be set independently);
  • the type of border (a single solid line is the default); and
  • you can also add a short phrase to the bottom of the box in a smaller, shaded font.

Tips

  • To make it easy to use, you can assign this macro to a menu, toolbar, or keystroke shortcut. New in v1.01: You can also turn off the display of the macro's menu with a setting in the User Modification Area; this might be useful if you always use the same watermark, border spacing, etc.
  • Option: You can search and remove one or more existing [Watermark] codes using the Find and Replace, Match, Codes feature. This works in any WordPerfect document. This might be useful to clean up the document before playing the macro (which uses Watermark B by default) or if you played the macro multiple times (see next section).
  • You can stop the borders from continuing on any page by placing your cursor at the top of a page and using Insert, Watermark, [choose A or B, whichever was used for the text box], Discontinue. Or, using the same watermark type (A or B) on a page will replace the previous one from that point forward. (For more on headers, footers, and watermarks and how to start, stop, suppress, change, replace, delay, overlay, and remove them, see here.)
  • To create a fill for the box or a different color for the borders, double click the [Watermark] code, then double click the [Box] code. This should display an Edit Text dialog with a Fill and Border option. (When done. click outside the box to de-select it.) This is also an easy way to change the border style.

Cautions

  • If you play the macro with the variable vStartPage:=0 (located in the User Modification Area) -- i.e., it is set to start on the current page -- and you play it multiple times on variaous subsequent pages, the macro will place several [Watermark] codes throughout the document on those pages.
    • This is generally not a problem since it is the same watermark in all cases (unless you modify the macro's code to adjust the borders), but remember: Inserting a watermark, header, or footer of the same type (A or B) replaces the same type item from that page forward. So if you have special watermarks in the document, be sure to test the effects of the macro on all pages in that document. (Make a backup of the document before playing the macro.)
    • But it might make for a "cleaner" document (in terms of fewer extra codes in the document) if you either (1) play the macro on the same page of the current document each time you use it, or (2) wait until the final draft to play the macro to play it (usually once, but you can reset the border between multiple plays for special effects).
  • Legal pleadings are created using Watermark B. Hence, if you use them you should use Watermark A for this macro. (See the User Modification Area to set the default.)