When you perform a merge, you combine a form document and a data source to form a new series of documents. The merge reproduces copies of the form document, with each copy containing information from a specific record in the data source.
In this section, you'll learn about
creating data for a merge
working with form documents for a merge
associating merge files
performing a merge
converting merge files
sorting, viewing, and finding data in data files
editing merge data files
selecting specific data for merges
merging with address books
changing merge options
using merge commands
You can program a merge by adding merge commands. For more information, see Reference: The Merge toolbar and programming commands in the online Help.
Creating data for a merge
When you merge documents, you produce copies of a form document. Each copy contains specific information from a record in a data source, such as a data file, an address book, or keyboard input.
When you use a WordPerfect data file as the data source, you can create either a data text file or a data table file. In both types of data files, information is organized into records and fields. For example, a record may include a name, address, telephone number, and other contact information. Each item within the record, for example, name and address, is recognized as a field. It is recommended that you use no more than 512 fields per record.
When you create a data text file, each field is marked by the ENDFIELD code and each record by the ENDRECORD code. The following graphic shows a data text file containing 1) ENDFIELD codes and 2) ENDRECORD codes.
When you create a data table file, fields and records are arranged in columns and rows. Each column contains a field. Each row contains a record. The following graphic shows a data table file containing 1) records, 2) fields, and 3) field names.
You can retrieve data from other file formats and use them as data files in WordPerfect. For example, you can retrieve and convert a database file, a spreadsheet file, an ODBC data source, or a text file. For information about converting files, see "Opening and previewing files."
You can also use an address book as a merge data source. For information, see "Merging with address books."
When you create a data file, WordPerfect automatically inserts a Merge toolbar into the merge data file. For more information about the Merge toolbar, see "Using the Merge toolbar."
To create a data file for a merge
1 Click Tools Merge.
2 Click Data source Create data file.
If you have typed in the active document, enable one of the following options in the Data File Source dialog box:
Use file in the active window-uses the active document
New document window-creates a new document
3 Click OK.
4 Type the name of a field in the Name a field box.
If you want to create a data table file, enable the Format records in a table check box.
5 Click Add.
6 Click any of the following to organize a selected field:
Replace-replaces the name of the selected field
Delete-deletes the selected field
Move up-moves the selected field up in the Fields used in merge list
Move down-moves the selected field down in the Fields used in merge list
7 Click OK.
8 In the Create or edit data in record area, type the data for each record.
9 Click Close, and click Yes.
You can also
Number the fields in an empty data file Click OK in the Create data file dialog box. Specify the number of fields in the Number of fields in each record box.
Note
It is recommended that you use no more than 512 fields per record.
Tips
To add a line to a field, press Ctrl + Enter.
Press Tab to move to the next field.
Working with form documents for a merge
A form document provides the pattern and layout for a merged document. It can contain text, formatting, graphics, and merge commands. You create form documents the same way you create regular documents; however, instead of typing specific information, you insert a command which can be replaced by information from a data source when you perform the merge. For more information about inserting merge commands, see "Using merge commands."
The following graphic shows a form document containing 1) FIELD codes where the name and address of the recipient are inserted and 2) text for a letter.
At the top of the document window, WordPerfect inserts the Merge toolbar to give you greater control over a merge. For more information about the Merge toolbar, see "Using the Merge toolbar."
You can create a form document for labels and merged text that is oriented sideways. WordPerfect also lets you create a form document that you can personalize during a keyboard merge. A keyboard merge lets you enter information into the form document each time you need to send it. For more information about the KEYBOARD command, see Merge programming commands. in the online Help.
If you do not want to create a new series of merged documents, you can send all of the merged data to a table. After you perform the merge, all of the merged output will be formatted into a single table with each column representing a field.
To create a form document for a merge
1 Click Tools Merge.
2 Click Form document Create form document.
If you have typed in the active document, enable one of the following options:
Use file in active window-uses the active document
New document window-creates a new document
3 Click OK.
4 Enable one of the following:
Associate a data file-specifies the path and filename for the file
Associate an address book-specifies an address book
Associate an ODBC data source-lets you select the ODBC source to use
No association-does not associate any data file
5 Type text, and insert merge commands in the form document.
6 Insert fields in the form document.
Notes
For information about inserting merge commands, see "To insert a merge command."
For information about inserting fields, see "To insert a field in a form document for a merge."
To insert a field in a form document for a merge
1 Click Insert field on the Merge toolbar.
2 Click where you want data to be filled in from a data source.
3 In the Field box, specify the field.
4 Click Insert.
To create labels for a merge
1 Click Tools Merge.
2 Click Form document Create form document.
If you have typed in the current document, enable one of the following options:
Use file in active window-uses the active document
New document window-creates a new document
3 In the Associate form and data dialog box, enable the Associate an address book option, and choose an address book from the list box.
4 Click OK.
5 Click Format Labels on the WordPerfect menu bar.
6 In the List labels for area, enable one of the following label options:
Laser printed-displays laser label options
Tractor-fed-displays tractor-fed label options
Both-displays laser and tractor-fed label options
7 Choose a label style from the Labels list, and click Select.
8 Insert fields in the form document.
Notes
For information about inserting fields, see "To insert a field in a form document for a merge."
You can merge selected records from an address book. For information, see "To merge selected records from an address book."
To create sideways text for a merge
1 Click Tools Merge.
2 Click Form document Create form document.
If you have typed in the active document, enable one of the following options:
Use file in active window-uses the active document
New document window-creates a new document
3 Click OK.
4 Click one of the following options:
Associate a data file-specifies the path and filename for the associated data file
Associate an address book-specifies an address book
Associate an ODBC data source-lets you select the ODBC source
No association-does not associate any data file
5 Click OK.
6 Click Insert Text box on the WordPerfect menu bar.
7 Insert fields in the form document, and click Close.
8 Select the text box.
9 Right-click the text box, and click Content.
10 Enable a rotation option in the Rotate text counterclockwise area.
Note
For information about inserting fields, see "To insert a field in a form document for a merge."
To create a form document for a keyboard merge
1 Click Tools Merge.
2 Click Form document Create form document.
If you have typed in the active document, enable one of the following options:
Use file in active window-uses the active document
New document window-creates a new document
3 Click OK.
4 Enable one of the following options:
Associate a data file-specifies a path and filename for the associated data file
Associate an address book-specifies an address book
Associate an ODBC data source-lets you select the ODBC source
No association-does not associate any data file
5 Click OK.
6 Click where you want to insert a keyboard prompt.
7 On the Merge toolbar, click Insert merge code, and choose Keyboard.
8 Type a user prompt for the information to be entered.
To create a table for a merge
1 Click Tools Merge.
2 Click Form document Create form document.
If you have typed in the active document, enable one of the following options:
Use file in active window-uses the active document
New document window-creates a new document
3 Enable one of the following options:
Associate a data file-specifies the path and filename for the associated data file
Associate an address book-specifies an address book
Associate an ODBC data source-lets you select the ODBC source
No association-does not associate any data file
4 Click Table Create on the WordPerfect menu bar.
5 Type the specified values in the following boxes:
Columns-number of columns
Rows-2
6 Click Create, and type a heading in each cell of the first row.
7 Right-click the table, click Format, and click the Table tab.
8 Enable the Insert new rows automatically check box, and click OK.
9 Insert fields in the second row of the table, and click Close.
10 Click at the end of the last cell in the second row, and click Insert merge code on the Merge toolbar.
Choose REPEATROW from the Merge codes list; click Insert; and click Close.
Note
After merging, the table expands one row for each record in the associated data file.
Tip
Press Tab to move to the next cell.
Associating merge files
When you merge documents, you must link the name of a data source to a form document. This is called associating a data source. You can associate a data source with a form document, or you can associate a form document with a data file, such as an ODBC data source. The association is always stored in the form document.
If the data source changes, you can associate a different data file. You can also go to an associated form document from its data file or to an associated data file from its form document.
To associate a data file with a form document
1 Open a data file.
2 Click Go to form on the Merge toolbar.
3 Click one of the following:
Select-associates an existing form document
Create-creates a new form document
Note
The association is stored in the form document.
To associate a form document with a data source
1 Open a form document that has no association with a data source.
2 Click Go to data on the Merge toolbar.
3 Click one of the following:
Select-associates a data file
Create-creates and names a new data file or form file
Address book-associates an address book
ODBC-associates a ODBC data source
Note
For information about associating an ODBC data source, see "To associate a form document with an ODBC data source."
To associate a form document with an ODBC data source
1 Open a form document that has no association with a data source.
2 Click Go to data on the Merge toolbar.
3 Click ODBC.
If prompted, log in to the database.
4 Choose a location from the Data source list box.
5 From the Table list box, choose a table in the database that contains the merge data.
Note
For more information about logging in to an ODBC database, see the online Help for the Microsoft SQL Server ODBC driver.
To go to the associated data file
1 Open a form document.
2 On the Merge toolbar, click Go to data.
Note
If there is no associated data file, you can select an existing data file or create a new one. For information about associating a data source, see "To associate a form document with a data source." For information about creating a data file, see "To create a data file for a merge."
To go to the associated form document
1 Open a data file.
2 On the Merge toolbar, click Go to form.
Notes
The associated form document must be open.
The association is stored in the form document.
To change the associated data source
1 Open a form document.
2 Click Insert field on the Merge toolbar.
3 Click Data source, and click a data file.
Performing a merge
When you perform a merge, you combine a form document and a data source to create a new series of documents. WordPerfect provides a variety of output options for the new documents. For example, you can save it to disk, print it, or add it to the active document. The following image shows 1) a data source document, 2) a form document, and 3) merged documents.
You can perform a keyboard merge and add information at the time of the merge. When you perform the keyboard merge, WordPerfect pauses the merge as specified in the form document and waits for you to enter information from the keyboard.
You can create envelopes as you merge a form document (such as a letter), or you can create merged envelopes on their own. An envelope is created for each record selected in the data source. For more information about working with envelopes, see "Creating envelopes."
You can also send each merged document as email.
Please note that it is recommended that you use no more than 512 fields per record.
To perform a merge
1 Click Tools Merge.
2 Click Form document, and choose the location of the form file to merge.
3 Click Data source, and choose the location of the data file to merge.
4 Click Output, and choose one of the following:
Current document
New document
Printer
5 Click Merge.
You can also
Stop a merge in progress Press ESC.
Save the merged file to disk Click Output File on disk. Choose the folder, drive, and where you want to save the file. Type a filename in the Filename list box. Click Select.
Tip
You can also perform a keyboard merge by clicking Merge on the Merge toolbar. For more information about using the Merge toolbar, see "Using the Merge toolbar."
To merge to envelopes
1 Click Tools Merge.
2 Click Form document, and choose the location of the form document.
If you are merging envelopes only, click Current document as the location of the form file.
3 Click Data source, and choose the location of the data file.
4 Click Envelopes.
5 Insert fields in the form document.
6 Click Close.
7 Click Continue merge on the Merge toolbar.
8 Click Output, and choose a location for the merged file.
Notes
The merged envelopes are placed at the end of the merged file.
If there is an existing envelope for this document, you can edit, cancel, or define the envelope. For more information about creating envelopes, see "Creating envelopes."
To perform a keyboard merge
1 Open a form or data file containing the KEYBOARD merge command.
2 Click Tools Merge.
3 Click Form document, and choose the location of the form file.
4 Click Data source, and choose the location of the data file.
5 Click Output, and choose a location for the merged file.
6 Click Merge.
7 When the merge pauses at the KEYBOARD command, type the information as prompted.
8 Click Continue merge on the Merge toolbar.
You can also
Skip a record Review the data in the Next record list box on the Merge toolbar. Click Skip next record.
Stop a keyboard merge Click Stop on the Merge toolbar.
Tip
To continue the merge to the end of the active record and ignore all other merge commands, click Quit on the Merge toolbar.
To merge to e-mail
1 Click Tools Merge.
2 Click Form document, and choose the location of the form file to merge.
3 Click Data source, and choose the location of the data file to merge.
4 Click Output, and choose E-mail.
5 Choose the field containing the email address from the Select field name of e-mail address list box.
6 In the Subject line box, type the subject line for the merged email message.
7 Click OK.
8 Click Merge.
9 Choose a profile from the Profile name list box.
Converting merge files
You can convert form documents and data files to regular WordPerfect documents. When a file is converted, it is no longer recognized as a form document or a data file for a merge, and the Merge toolbar is removed. For information about the Merge toolbar, see "Using the Merge toolbar." You can also convert a table to a data text file.
When you use a data file that is not formatted for a merge, WordPerfect imports and converts it for the merge. You can use the file one time and not save it as a merge file, or you can save the file in WordPerfect format so that you can use it again.
You can also import data in other forms, such as a spreadsheet, database, or text file, into a data text file for a merge. For more information, see "To link or embed spreadsheet data as regular text," "To link or embed a database as regular text," and "To link or embed a delimited text file."
It is recommended that you use no more than 512 fields per record.
To convert a form document or data file to a regular document
1 Open a data file or a form document.
2 On the Merge toolbar, click Options, and choose Remove merge bar.
One of the following dialog boxes displays:
The file will not be recognized as a merge file-indicates that the active file will not be recognized as a merge form document or merge data file
Data file association will be lost-indicates that the active file will not be recognized as a merge form document and will not be associated with any data file
Note
After the Merge toolbar has been removed, you cannot click Undo to display it again. You need to re-create the merge file.
To convert a table to a data text file for a merge
1 Select a table.
2 Press BACKSPACE.
3 Enable the Convert table contents option.
4 Click OK.
5 Enable the Convert text to merge data file (.dat) option.
If you want to convert the cells in the first row to field names, enable the Use text as first row as field names check box.
Sorting, viewing, and finding data in data files
You can sort a data file. Using the Quick data entry feature in WordPerfect, you can scroll through the records and fields in a data file to view them. You can also find records that contain specific text.
To sort a data file
1 On the Merge toolbar, click Options, and choose Sort.
2 Choose a criteria from the Sort by box.
3 Click Sort.
The table is sorted alphabetically or numerically in ascending order based on the first cell in each row.
Note
For more information about sorting records, see "Working with records."
To view records in a data file using Quick data entry
1 Click Quick entry on the Merge toolbar.
2 Click one of the following:
First
Previous
Next
Last
3 Click Close.
To view a field in a data file using Quick data entry
1 Click Quick entry on the Merge toolbar.
2 Click any of the following:
Next field-moves the cursor to the next field
Previous field-moves the cursor to the previous field
To find text in a data file using Quick data entry
1 Click Quick entry on the Merge toolbar.
2 Click Find, and type the text to match in the Find box.
3 Click one of the following:
Find next-moves to the next record containing the text specified
Find previous-moves to the previous record containing the text specified
Notes
Depending on which record is displayed, Find next or Find previous may be grayed.
If no record is found, the first record in the data file displays.
Editing merge data files
A data file organizes data for a merge into fields and records. There are different ways to edit a data file depending on how the data file is formatted. A data file can be formatted as either a data text file or a data table file. In a data table file, information is organized in a table. Each column of the table contains a field, and each row contains a record. You can add and delete columns and rows from a data table.
In a data text file, fields are separated by an ENDFIELD code. Records are separated by an ENDRECORD code and a hard page break. WordPerfect lets you add fields to and delete fields from records. You can also add field names and records to data text files.
Using Quick data entry, you can add and delete fields or records in both data text files and data table files. You can also edit the contents of fields in records.
It is recommended that you use no more than 512 fields per record.
To add a column to a data table
1 Click in a column next to where you want to add a new column.
2 On the Merge toolbar, click Column, and choose Insert.
3 Type the name of the new field in the Field name box.
4 Click one of the following:
Before current field-inserts the new field before the selected column
After current field-inserts the new field after the selected column
After last field-inserts the new field as the last column in the table
Note
It is recommended that you use no more than 512 fields per record.
To delete a column from a data table
1 Click in a column.
2 Click Column on the Merge toolbar.
3 Choose DELETE.
To add a row to a data table
1 Click in a row next to where you want to add a new row.
2 On the Merge toolbar, click Row, and choose Insert.
3 Click one of the following:
Add row above current row
Add row below current row
Add row to end of table
To delete a row from a data table
1 Click in a row.
2 On the Merge toolbar, click Row and choose Delete.
To add or delete a field from a data text file record
To Do the following
Add a field Click where you want to add the field. Type data, and click End field on the Merge toolbar.
Delete a field Select the text and the ENDFIELD merge code. Press DELETE.
Note
It is recommended that you use no more than 512 fields per record.
To add or delete a field name from a data text file
To Do the following
Add a field name Click where you want to add a field. The cursor must be within the parentheses of the Fieldnames code.
Type the new field name followed by a semicolon.
Delete a field name Click within the parentheses of the Fieldnames code. Select the field name and following semicolon. Press DELETE.
Notes
A semicolon, but no spaces, separates each field name.
You need to manually add or delete fields from records. For information, see "To add or delete a field from a data text file record."
It is recommended that you use no more than 512 fields per record.
To add a record to a data text file
1 Type the text for the first field.
2 Click End field on the Merge toolbar.
3 Click after the last ENDFIELD code of the record.
4 Click End record on the Merge toolbar.
You can also
Delete a record from a data text file Select the record, including the ENDFIELD and ENDRECORD codes and the hard page break at the end of the record. Press DELETE.
Print a data text file Click Tools Merge. On the Merge toolbar, click Options, and choose Print.
To add a field to a data file using Quick data entry
1 Click Quick Entry on the Merge toolbar.
2 Click Field names.
3 Type the field name in the Field name box.
4 Click one of the following:
Add-adds the new field after the selected field
Add before-adds the new field before the selected field
You can also
Replace a field name in a data file Choose a field from the Fields used in merge list box. Click Replace.
Delete a field from a data file Choose a field from the Fields used in merge list box. Click Delete.
Notes
If you replace a field name, information in that field will be deleted from each record in the data file. For example, if you replace "Address" with "Street Address," all data in the "Address" field in all records will be deleted.
If you delete a field name, information in that field will be deleted from each record in the data file.
It is recommended that you use no more than 512 fields per record.
To add a record to a data file using Quick data entry
1 Click Quick entry on the Merge toolbar.
2 Click New record.
3 Type the data for a field.
4 Click Close.
You can also
Delete the displayed record Click Delete record.
Tip
Press Enter to move to the next field.
To edit fields using Quick data entry
1 Click Quick entry on the Merge toolbar.
2 Click in the field you want to edit.
If you want to edit dimmed fields, enable the Allow editing of dimmed fields check box.
3 Type text.
Notes
If you edit fields with functions, the functions are deleted.
For information about finding data in a data file, see "Sorting, viewing, and finding data in data files."
Selecting specific data for merges
When you merge documents, you produce copies of the form document. Each copy contains specific information from a record in the data source. If you do not want to merge all the records in a data source, you can limit a merge to certain records in the data file by marking a range of records that you want to merge or by specifying conditions for records.
It is recommended that you use no more than 512 fields per record.
To mark records for a merge
1 Click Tools Merge.
2 Click Form document, and choose the location of the form file.
3 Click Data source, and choose the location of the data file.
4 Click Records.
5 Enable the Mark records option in the Selection method area.
6 Type the range of records to display in the Display records from boxes.
7 Choose the first field to display in the First field to display box.
8 Click Update record list.
9 Click OK.
You can also
Mark individual records Enable the records in the Record list box.
Select all records Click Mark all records in list.
Clear all marked records Click Unmark all records in list.
To specify conditions for a merge
1 Click Tools Merge.
2 Click Perform merge.
3 Click Form document, and choose the location of the form file.
4 Click Data source, and choose the location of the data file.
5 Click Records.
6 Enable the Specify conditions option in the Selection method area.
7 Select a field from the Field list box.
8 Type the selection criteria in the Condition text boxes.
If you want to see examples of selection criteria, click Example.
9 Click OK.
You can also
Choose a range of records Enable the Record number range check box. In the From box, type the first record in the range. In the To box, type the last number in the range.
Reset conditions Click Clear all.
Merging with address books
When you use an address book as the data source for a merge, you do not have to create a data file. You can merge all records or select specific records from an address book and merge them directly to letters, envelopes, labels, or form documents. By default, WordPerfect lets you access Directory Server, MAPI, and Windows address books through the Microsoft Outlook address book. For more information about using Microsoft Outlook, see "Using Microsoft Outlook address book in WordPerfect."
You can also create a merge data file by using the records in an address book. WordPerfect lets you create a data file by using all records or selected ones. When you merge information from an address book, the records are interpreted as a merge data file at the time of the merge. If you want to save address book information as a merge data file, you can use the adrs2mrg.wcm macro included with WordPerfect. For more information about macros, see "Recordings, macros, and automation features."
You can merge envelopes with a form document by using an address book. You can also insert address book records as labels.
It is recommended that you use no more than 512 fields per record.
To merge using an address book
1 In a form document, click Tools Merge.
2 Click Data source. Choose Address book, and choose an address book from the enabled list box.
3 Click Output, and choose a format for the merged file.
4 Click Merge.
Note
If you have selected records from an address book before starting the merge, those are the records that merge unless you specify others.
To merge selected records from an address book
1 Click Tools Merge.
2 Click Form document, and choose the location of the form document.
3 Click Data source, choose Address book, and choose an address book from the list box.
4 Click Records.
5 Hold down Ctrl, click each entry to use, and click OK.
6 In the Format address dialog box, click OK.
7 Click Output, and choose a format for the merged file.
8 Click Merge.
To create a merge data file from an address book
1 Click Tools Macro Play.
2 Choose adrs2mrg.wcm.
3 Click Play.
4 Enable the All records from address book option.
5 Choose an address book from the Select address book list box.
6 Click OK.
To create a merge data file from selected address book records
1 Click Tools Macro Play.
2 Choose adrs2mrg.wcm, and click Play.
3 Enable the Selected records option.
4 Click Select records, and click OK.
5 In the list of categories, double-click the type of address book, and click an address book.
6 Hold down Ctrl, click each entry you want to use, and click Insert.
7 In the Format address dialog box, click OK.
8 In the Address book to merge dialog box, click OK.
Note
If the adrs2mrg.wcm macro is not listed, you need to install it.
To merge envelopes and a form document with an address book
1 Click Tools Merge.
2 Click Data source, choose Address book, and choose an address book from the list box.
3 Click Envelopes.
If there is an existing envelope for this document, you can edit, cancel, or define the envelope.
4 Click where you want to insert a field.
5 Click Insert field on the Merge toolbar, choose a field, and click Insert.
6 Click Close.
7 Click Continue on the Merge toolbar.
8 Click Form document, and choose the location of the form file.
9 Click Output, choose the location for the merged file, and click Merge.
You can also
Merge only envelopes using an address book Open a blank form document.
Print envelopes using an address book Click Output, and choose Printer. Click Merge.
Reset envelope, form, and data options Click Reset in the Merge dialog box.
Notes
When you merge envelopes with an address book, you cannot add graphics to the envelope. Only the return address, the recipient's address, and a bar code can be used. You can add extra text, such as "Air Mail," below the return address or above the recipient's address. The extra text prints in the same font as the addresses. For more information about creating envelopes, see "Creating envelopes."
The merged envelopes are placed at the end of the merged file.
To insert an address book record as a label
1 In a new document window, click Tools Merge.
If you have typed in the document, enable the New document window option in the Create merge file dialog box.
2 In the Associate form and data dialog box, enable the Associate an address book option, and choose an address book from the list box.
3 Click Format Labels on the WordPerfect menu bar.
4 In the List labels for area, enable one of the following label options:
Laser printed-displays laser label options
Tractor fed-displays tractor fed label options
Both-displays both laser and tractor fed label options
5 Choose a label format from the Labels list, and click Select.
6 Click where you want to insert the address label.
7 Click Tools Address book.
8 Choose an address, and click Insert.
9 In the Format address dialog box, choose a format from the Format list box.
Changing merge options
When you perform a merge, you combine a form document with a data source to form a new set of documents. You can change the default file extensions for merge forms and data files.
Merge options can be changed. For example, you can specify the number of copies to produce for each merged document. WordPerfect lets you separate each merged record with a page break and insert a blank line for each empty field. You can also reset all of the options to the default.
To specify an extension for merge filenames
1 Click Tools Settings.
2 Double-click Files.
3 In the Files settings dialog box, click the Merge/Macro tab.
4 Disable the following check boxes:
Use default form file extension on open and save
Use default data file extension on open and save
5 Type an extension in the following boxes:
Use default form file extension on open and save-specifies the file extension for form files. The default is .frm.
Use default data file extension on open and save-specifies the file extension for data files. The default is .dat.
To change merge options
To Do the following
Specify the number of copies for each merged record Click Tools Merge. Click Options. Type a value in the Number of copies for each record box.
Separate merged documents with a page break Click Tools Merge. Click Options. Enable the Separate each merged document with a page break check box.
Insert a blank line for an empty field Click Tools Merge. Click Options. Choose Leave blank line from the If field is empty in data source list box.
Remove a blank line representing an empty field Click Tools Merge. Click Options. Choose Remove blank line in the If field is empty in data source list box.
Reset merge options to the default Click Tools Merge. Click Reset.
Note
If Reset is disabled in the Perform merge dialog box, all options (envelope, form, and data) are set to the default.
Using merge commands
Merge commands (or merge codes) help you customize and automate a merge. Merge commands instruct WordPerfect how to combine data sources and form documents. Like macro commands, they resemble programming languages in the use of a language (syntax), variables, and logical operations.
You can customize a merge by inserting merge commands. For example, if you add the DATE command to a letter, WordPerfect will replace the [DATE] code with the current date. You can also delete, display, or hide merge commands.
The POSTNET command can be inserted into a form document. A POSTNET bar code is a postal symbol used for addresses in the United States. WordPerfect inserts the POSTNET bar code for the specified ZIP code. You can insert the same POSTNET bar code for all of the records in a merge, or you can insert a different code for each record in a data file.
To insert a merge command
1 On the Merge toolbar, click Insert merge code, and click More.
2 Click where you want to insert a merge code.
3 Choose a merge code from the Merge codes list box.
4 Click Insert.
If prompted, type parameters, and click OK.
Note
For more information, see Reference: The Merge toolbar and programming commands in the online Help.
To delete a merge command
1 Click at the beginning or end of a merge command.
2 Press DELETE.
Note
When you delete merge commands, WordPerfect will remove the code and parentheses, leaving prompts and parameters.
To display or hide a merge command
1 Click Tools Settings.
2 Click Display.
3 In the Display settings dialog box, click the Merge tab.
4 Enable one of the following options:
Display merge codes-displays the merge commands
Display merge codes as markers-displays command markers only
Hide merge codes-does not display commands
Tip
You can also click Options on the Merge toolbar to display or hide merge codes.
To display or hide a merge command for a keyboard merge
1 Click Tools Merge.
2 Click Options.
3 Choose one of the following options from the Display merge codes list box:
Show codes-displays the merge commands
Hide codes-does not display commands
Show as markers-displays command markers only
To merge a single POSTNET bar command in a form document
1 On the Merge toolbar, click Insert merge code, and click More.
2 Click where you want to insert the POSTNET bar command.
3 Choose POSTNET(string) from the Merge codes list box.
4 Click Insert.
5 Type the ZIP code between the parentheses of the POSTNET command.
6 Click Close.
To insert a merge field for a POSTNET bar command
1 Click Insert merge code, and click More on the Merge toolbar.
2 Click where you want to insert the POSTNET bar code.
3 Choose POSTNET(string) from the Insert merge codes list box.
4 Click Insert.
5 Click between the parentheses of the POSTNET command.
6 Click Insert field on the Merge toolbar.
7 In the Field names box, choose the field containing the ZIP code.
8 Click Insert and close.
Note
To choose a field, you must have associated a data source with the form document. If not, you can type the name of the field, making sure that it matches the field name in the data source. For information about data sources, see "Associating merge files." For information about form documents, see "Working with form documents for a merge."