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

Page updated Nov 10, 2011
BACKGROUNDFILL - Create a user-specified "background fill" for the page, extending to outside page margins (or at any desired printable location)

Download BACKGROUNDFILL.ZIP (version 1.0; 08/01/11; 17,232 bytes)

Compatible with WordPerfect X5 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

Related pages -

To create a line border around the edges of the page, see LineBorders.

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.

Adding emphasis to text: how to create custom paragraph / page border or fill styles

Purpose

This macro creates a solid background page fill with your choice of color, outside the page margins, on the current page or from the current page forward, according to the specifications of the user (see Modifications below).

Screen shot of a sample page after playing the macro.

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 filled text box as near the edges of the paper as desired (and that the printer can print).

The background fill is created using a text box inside a watermark, so it will show up without interfering with the main document's text, in the user's desired dimensions, and without being impacted by any page margin changes in the document. See Tips and Cautions below.

Note that if you choose the option to place the background on the current page only, a [Delay: 1] page code is also added to discontinue the watermark on the next page (if there is a next page). So if you wish to delete the [Watermark] code you should delete the associated [Delay] code.

For more on headers, footer, and watermarks and how to start, stop, suppress, change, replace, delay, overlay, and remove them: http://wptoolbox.com/tips/HeadFootWM.html.

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 place the watermark (current page only or current and following pages);
  • the space around the perimeter of the border (spacing for each of the four borders can be set independently);
  • the color and shade of the box fill; and
  • the type and color of an optional border.

Tips and cautions

  • Even though you can use Edit, Undo (or Ctrl+z) to remove the effects of the macro, it is wise to make a backup of the document before playing the macro.
  • Optional: 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 sections). You will also want to remove any associated [Delay] codes that discontinue the watermark on the next page.
  • To make it easy to use, you can assign this macro to a menu, toolbar, or keystroke shortcut: http://wptoolbox.com/tips/EasyPlay.html. 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., and prefer to use the macro without seeing a menu.
  • You can also make several copies of this macro with different borders set in the User Modification Area.
  • If you chose to place the watermark on multiple pages, you can manually stop the borders from continuing on any page by placing your cursor at the top of that page and using Insert, Watermark, [choose A or B, whichever was used for the text box], Discontinue. This is the method the macro uses if you chose the "current page only" option.
  • Using the same watermark type (A or B) on a page will supersede any previous one of the same type (A or B) from that point forward. (For more on headers, footer, and watermarks and how to start, stop, suppress, change, replace, delay, overlay, and remove them: http://wptoolbox.com/tips/HeadFootWM.html)
  • The macro can even be used to create a small empty box to use for stamps, initials, etc. Just set the outside spaces to larger sizes in the User Modification Area or the optional pop up menu. If you then edit the watermark you can add text to the box. (Better yet, see the EdgeText macro here: http://wptoolbox.com/library/EdgeText.html.)
  • To create a border in a matching or contrasting color, see the options in the User Modification Area of the macro's code.
  • If you play the macro with the variable vCurrentPgOnly=1 (located in the User Modification Area)—i.e., it is set to add a box just on the current page—and you play it multiple times on various 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 for various pages), but remember: Inserting a watermark, header, or footer of the same type (A or B) supersedes the same type of item from that page forward. So if you have other special watermarks in the document, be sure to test the effects of the macro by viewing 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 or fewer "misplaced" codes due to editing the document) if you 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.)
  • In lieu of using this macro: There is a free online Gradient Image Generator that can quickly create a horizontal or vertical gradient fill in your chosen colors. Save the image to your hard drive, then create a Watermark (see here) and insert the image into the watermark with Insert, Graphics/Pictures, From File. Then re-size it to fit the page. Right-click on the image to bring up WordPerfect's Image Tools. You can then flip the image, change the brightness, etc. Here is a screenshot of a sample (in WordPerfect the image actually extends to the right side).
  • In lieu of using this macro: You can create a custom horizontal or vertical gradient fill. See Adding emphasis to text: how to create custom paragraph / page border or fill styles.