Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
|Page updated Oct 16, 2009|
Main tips page | Browse tips
|Automatically run the spell checker before printing a document||
You could create a macro that brings up the spell checker, then prints, and assign the macro to your toolbar. But you would have to remember to use the macro each time you want to spell check and print.
A better solution: Create a template macro inside the template the user uses to create the document. Here's how:
1. Edit the desired template: Click on File, New from Project (in WordPerfect 9, or File, New in WP8), then right-click the desired template, and then select Edit WP Template. [Note: if you want to edit the *default* template -- the one on which all new blank documents are based -- look for the one labeled "Create a blank document" in the group "Custom WP Templates."]
The actual template (with a filename ending in .WPT) should appear onscreen.
2. On the top menu, click on Tools, Template Macro, Record. In the small dialog box that pops up, give the new template macro a name, then click on Record. Next, on the top WP menu, click on Tools, Spell Checker. When the Spell Checker appears, close it immediately and click the left-hand button on the template macro toolbar (the one that has a cassette icon) to stop the recording.
Now you will need to modify the macro due to a small quirk in WP as noted in a Corel Knowledge Base article (which was at http://kb.corel.com/kbdocs/FOD/6137.htm, but has been removed). Click on Tools, Template Macro, Edit, and select the new macro to edit. Change the code to read as follows:
3. Finally, in order for the macro to play automatically, you will need to have WP "trigger" it when you go to print the document. [For more information on triggers, see WP's Help file Index, under "triggers" and also "Trigger" a macro ..."]
On the template toolbar, click on Associate to bring up the Associate dialog. Then click on the Triggers radio button, then on "Pre Print" in the left drop list window. In the Macros drop list on the right side of the Associate dialog, select the name of your macro, then click OK. You should be back in the template document.
4. Save the template (File, Save), then close it (File, Close).
5. Test: Open a new document based on the template, enter some text (perhaps with some obvious errors), and print it. The spell checker should appear, and after you dismiss it the document should print.