|
Download SUPDELAY.ZIP (07/12/04; 4,284 bytes)
Compatible with WordPerfect 6-X3+
Downloading,
Documentation, Modifications, and Support
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.
For the "manual method" of setting
up second pages with Suppress and Delay codes, click here.
See also -
|
The SupDelay macro
|
This is a simple and straightforward macro
(you can also do the same things manually in the current document
or in a template; see below). It is useful
if the second and subsequent page of letters, reports, etc.,
have different headers, footers, watermarks, and margins, or
when you don't want a page number on Page 1. Many people who
use preprinted letterhead stationery, "printed-on-the-fly"
stationery, or custom styles for reports often set margins and
page numbering differently for the first page than for second
pages.
For example, assume you want to use Header
A, Footer A, and/or Watermark A for your first page letterhead
design (or to supplement the design of preprinted stationery),
or for the title page of a company report.
Assume you want to use Header B, Footer B,
and/or Watermark B for other things (such as a name, date, document
title or page number) on the second and subsequent pages -- if
there are any such pages in a given document.
Also assume you have set new margins on Page
1, and want to return the margins to some preferred default setting
on subsequent pages, if there are any. (Sometimes body text "runs
over.") You don't have to create any header, footer,
or watermark, but if you do the macro will suppress or delay
the appropriate structures on the appropriate pages, like this:
|
Page 1: |
Page 2 and subsequent pages
(if any): |
|
Header A available |
(Header A discontinued) |
|
(Header B suppressed) |
Header B available |
|
Footer A available |
(Footer A discontinued) |
|
(Footer B suppressed) |
Footer B available |
|
Watermark A available |
(Watermark A discontinued) |
|
Watermark B available |
Watermark B available |
|
No page numbers on Page 1 |
Page numbering continues (if page numbering was
turned on) |
|
Page margins can be customized |
Page margins reset to 1" (the WP default
setting, but this can be easily changed; see also the Important Note below on this page) |
Go to the top of your document and set up
both varieties (A and B) of headers and footers, set up one or
both watermarks, and set new Page 1 margins. Then play the macro.
If you use SUPDELAY with letters, you can add some simple commands
to insert the current date, several hard returns, etc., on the
first page when the macro plays. See the comments at the top
of the macro and the disabled code segment at the bottom.
You can play the macro in a template (while
editing the template itself) for a permanent Page 1/Page 2+ setup,
or play it in your current document before, during, or following
text entry and header/footer setup.
TIP:
On page 2 you can create a new Header A, Footer A, and Watermark
A instead of discontinuing (stopping) them. The newly created
elements will simply take over on page 2, automatically discontinuing
the same elements that are on page 1. |
The manual method of
suppressing and/or delaying items in templates
|
For those who prefer to tinker with things
-- and perhaps learn something in the bargain -- here's how to
do what the macro does by using choices from the WP menus.
Note that you can use this method in the current
document (.WPD), but the above macro probably is more convenient
if you have to do it often. For future documents, you probably
will want to modify the template (.WPT) on which those documents
are based. See the procedures below.
For new templates: Create the template with File, New (or New from Project),
Options button, Create WP Template. A new document will open,
named Template1. You can create everything here, or import a
previously created (one page) document with Insert, File.
For existing templates: Edit the template with File, New (or New from Project),
select the template by name, then click the Options button and
choose Edit WP Template.
- Assuming you have used Header A and Footer
A on the first page of the template, you can use Header B (and
Footer B) for the second and subsequent pages. Do both of these
things while editing page 1 of the template. That is, create
all headers and footers on the first page.
- Next, you need to discontinue (i.e.,
stop) Header A and Footer A on the second and subsequent pages
(you don't need them anymore), and supress Header B and
Footer B on page 1 (you don't want them to appear until page
2).
- The first task (discontinue Header A and
Footer A) is done with Format, Page, Delay Codes, 1, OK. Then
click Header/Footer, Header A, Discontinue. Do the same for Footer
A. You can also discontinue Watermark A, if it is used, and reset
margins for the second and subsequent pages. Then click the Close
button to return to the main template window.
- For the second task (suppress Header B, etc.),
go to the top of the document and click Format, Page, Suppress.
On the dialog that pops up, choose Header B, Footer B, and (probably)
Page Numbering. Click OK.
- Save the template with File, Save. If it's
a new template, save it in the group category of your choice.
TIPS:
- On page 2 you can create a new Header A,
Footer A, and Watermark A instead of discontinuing (stopping)
them. The newly created elements will simply take over on page
2, automatically discontinuing the same elements that are on
page 1.
- Some of the above information was used to
create an automated letterhead template,
which you can download and examine from the Library.
BUG ALERT:
From Charles Rossiter, Corel C_Tech, relating
to WordPerfect 11/sp1 and later (quoted here):
There is a known bug "A Suppress code
is deleted if the suppress criteria are changed" -- So,
if you set suppress criteria on page 107, so as to suppress the
page header, and then add a suppress of the footer, you will
probably have no suppress code, or suppress actions changed.
To overcome this, you should delete the Suppress
code to be changed, and then create a new Suppress code.
My records show this as a bug in WPWin11 with
SP1, and later versions. The following macro can be used to replace
the Suppress keystroke:
// Suppress.wcm
// To remedy bug in WPWin11 and later which deletes //
a Suppress code;
// Menu could be edited to replace Suppress by this macro
nnn = ?PageSuppress
// Is Page Number Bottom Center selected?
(value 2)
// or PageNumbering selected (value 1)
nnn =(nnn%4)
InvokeDialog (PageSuppressDlg)
Wait (5)
// Reverse current setting twice
SendKeys ("{Space}{Space}{Tab}") // Header A
SendKeys ("{Space}{Space}{Tab}") // Header B
SendKeys ("{Space}{Space}{Tab}") // Footer A
SendKeys ("{Space}{Space}{Tab}") // Footer B
SendKeys ("{Space}{Space}{Tab}") // Watermark A
SendKeys ("{Space}{Space}{Tab}") // Watermark B
Switch (nnn)
// Page NumberBottomCenter
CaseOf 2: SendKeys ("{Alt+n}{Space}{Tab}")
// Page Numbering
CaseOf 1: SendKeys ("{Space}{Space}{Tab}{Tab}")
// Neither
CaseOf 0: SendKeys ("{Tab}{Tab}{Tab}")
EndSwitch
To copy this macro into your own program,
see here. You can assign
this macro to a menu (replacing the original Format, Page, Suppress
menu item), keystroke, or toolbar button; see here.
|
|