Article ID: 72117 - Last Review: August 15, 2007 - Revision: 4.2 WD: How to Convert WordPerfect Merge Data Documents to WordThis article was previously published under Q72117 On This PageSUMMARY Microsoft Word supports conversion of WordPerfect 5.x
secondary merge files, but not conversion of WordPerfect 6.x secondary merge
files. MORE INFORMATION A WordPerfect 6.x document can be opened in Word 6.x or
later, provided the WordPerfect 6.x import converter has been installed.
However, the format of an imported secondary file is not valid as a Word 6.x
data document unless you edit it prior to performing a mail merge. Word 6.x and later support direct conversion of secondary files from WordPerfect 5.0 and 5.1 for MS-DOS and WordPerfect 5.1 and 5.2 for Windows. Word 6.x and later can use the imported secondary file in a mail merge. To use a WordPerfect 5.x secondary file, simply open the file in Word 6.x or later, or access the file in a mail merge. The following Word programs do not support direct conversion of WordPerfect 5.x secondary files and require a workaround:
WordPerfect 5.x Secondary files and Word 6.x and LaterWord 6.x and later versions automatically detect and convert WordPerfect 5.x secondary merge files to Word data source document format, provided the appropriate text converter is installed. To open the WordPerfect 5.x secondary file simply open the file in Word 6.x or later, or access the file in a mail merge.Secondary files containing 31 fields or fewer become tables, and those with more than 31 fields become tab-delimited data documents. WordPerfect conditional print merge constructs and macros are not retained. WordPerfect {END FIELD} and {END RECORD} merge commands must be properly placed in a WordPerfect file or field data may be placed in the wrong column or row after conversion to Word. WordPerfect 5.x Secondary Files and Versions of Word Earlier Than 6.xVersions of Word earlier than 6.x do not support conversion of WordPerfect 5.x secondary merge files.When converting a secondary file from WordPerfect, the document text and layout will be retained, but merge commands appearing within braces (for example, {FIELD NAMES}, {END FIELD}, and {END RECORD}) are lost. The WordPerfect secondary document layout is not a valid data document layout for Word WordPerfect 6.x Secondary Files and Word 6.x and LaterWord for Windows versions 6.x and later can open a WordPerfect 6.x secondary file if the WordPerfect 6.x import converter has been installed. However, the file will be interpreted as a normal WordPerfect document.When converting the WordPerfect 6.x secondary file, the document text and layout will be retained, but merge commands appearing within braces (for example, {FIELD NAMES}, {END FIELD}, and {END RECORD}) are lost. NOTE: Word for Windows version 6.x users will need to obtain the WordPerfect 6.x for Windows import text converter, which is supplied on the Supplemental WordPerfect Conversions Kit disk. WordPerfect 6.x Secondary Files and Versions of Word Earlier Than 6.xVersions of Word earlier than 6.x do not support direct conversion of WordPerfect 6.x files. You must save the WordPerfect 6.x file in an intermediary format, such as the version of Word being used, an earlier WordPerfect format, or Rich Text Format (RTF), before you can open it in WordHow to Import a WordPerfect Secondary FileUse the appropriate method below to import:
Create a new primary document in WordPerfect 5.x or 6.x such that when it is merged with the secondary file, the resulting merged file is in a valid data document format that Word can use in a print merge. Use the appropriate method for your version of WordPerfect to accomplish this. WordPerfect 5.x:
WordPerfect 6.x:NOTE: If the WordPerfect 6.x secondary file is in a table format rather than a text format, you can open the file in Word 6.x or later with the WordPerfect 6.x import converter and you do not need to follow the steps below. You can use the data file after removing the extra paragraphs in each of the table cells.
Method 2: Use If You Do Not Have Access to WordPerfect: It is possible to clean up a WordPerfect 5.x or 6.x for Windows data document in Word after converting the file directly from WordPerfect format. However, due to the number of possible variations to the layout of a WordPerfect data document and the complexity and variations that are required in a clean-up macro, this method is recommended only if you do not have access to WordPerfect and cannot use method 1. A valid Word data file must be either a comma or tab delimited file, or must be formatted as a table. If a delimited document is used, the delimiter must separate each category of information (or data field) for each record. Each record must have the same number of delimiters, and each record must be separated from the next record by a hard return. If a table is used, data field information must appear in a separate table cell, and each row (which corresponds to a singe record) must have the same number of cells. Both types of data files must contain a header record, which lists all the field names that identify the data field categories. An example of a two-record tab delimited data file, where the non printing characters have been noted in brackets, follows:
First {TAB} Last {TAB} Address {TAB} City {TAB} State {TAB}
Zip {HARD RETURN}
Sam {TAB} Elliot {TAB} 3499 Green Hills Rd. {TAB} Beverly Hills {TAB}
CA {TAB} 98830 {HARD RETURN}
Kate {TAB} Simmons {TAB} 1104 Calvary St. {TAB} Hampton {TAB} VA {TAB}
11101 {HARD RETURN}
WordPerfect Mail Merge FormatsWordPerfect's secondary mail merge files are significantly different from Word for Windows, Word for the Macintosh, and Word for MS-DOS data documents. In WordPerfect, a data document (by default) aligns merge data down the left margin with each field on a separate line, and each record separated by an end-of-record code. In all versions of Microsoft Word, each record contains fields that are separated by delimiters, and each record is separated by a hard return.The sections below describe the default layouts used by WordPerfect 5.1 for MS-DOS and WordPerfect 5.x and 6.x for Windows, as well as the somewhat different format used by WordPerfect 5.0 for MS-DOS. Possible manual variations of the default formats are also described. WordPerfect 6.x Secondary Merge File FormatBy default, a WordPerfect secondary text file created in WordPerfect 6.0 or 6.1 for Windows separates records by using the ENDRECORD merge command followed by a hard page break. The information in each record is divided into fields. Fields within each record are separated by the ENDFIELD merge command followed by a hard carriage return.Fields may be referenced in a primary merge document by number or by name. Fields are automatically numbered by WordPerfect from top to bottom by default. If names are assigned to fields, these names will appear in a record at the beginning of the secondary merge file preceded by the FIELDNAMES merge command. Therefore, by default, a WordPerfect 6.x secondary merge file that includes field names appears similar to the following: FIELDNAMES(Name;Address)ENDRECORD (Hard Page Break) Mary Jane DoeENDFIELD Seattle, WashingtonENDFIELD END RECORD (hard page break) WordPerfect 5.x Secondary Merge File FormatBy default, a WordPerfect secondary file created in WordPerfect 5.1 for MS-DOS or WordPerfect 5.1, 5.2 for Windows separates records by using the {END RECORD} merge command followed by a hard page break. The information in each record is divided into fields. Fields within each record are separated by the {END FIELD} merge command followed by a hard carriage return.Fields may be referenced in a primary merge document by number or by name. Fields are automatically numbered by WordPerfect from top to bottom by default. If names are assigned to fields, these names appear in a record at the beginning of the secondary merge file preceded by the {FIELD NAMES} merge command. Therefore, by default, a WordPerfect 5.1 or 5.2 secondary merge file that includes field names appears similar to the following:
{FIELD NAMES}Name~Address~~{END RECORD}
(Hard Page Break)
Mary Jane Doe{END FIELD}
Seattle, Washington{END FIELD}
{END RECORD}
(hard page break)
WordPerfect 5.0 Secondary Merge File FormatBy default, a WordPerfect secondary file created in WordPerfect 5.0 for MS-DOS separates records by using the Merge E command (^E followed by a hard page break). The information in each record is divided into fields. Fields within each record are separated by the Merge R command (^R followed by a hard return).Fields can be referenced in a primary merge document by number or by name. WordPerfect automatically numbers fields from top to bottom by default. If names are assigned to fields, these names appear in a record at the beginning of the secondary merge file, preceded by the Merge N command (^N followed by a hard return). Therefore, by default, a WordPerfect 5.0 secondary merge file that includes field names appears similar to the following: ^N Name^R Address^R ^E Mary Jane Doe^R Seattle, Washington^R ^E
567 E. Timpanogos Parkway The third-party contact information included in this article is
provided to help you find the technical support you need. This contact
information is subject to change without notice. Microsoft in no way guarantees
the accuracy of this third-party contact information. Orem, UT 84097 Phone:(801) 765-4022. Web: http://www.corel.com/servlet/Satellite?pagename=Corel3/Products/Display&pfid=1047024307359 (http://www.corel.com/servlet/Satellite?pagename=Corel3/Products/Display&pfid=1047024307359) The WordPerfect products included here are manufactured by Corel Corporation, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability. REFERENCES "Microsoft Word Developer's Conference" manual, (c) 1991,
Microsoft Corporation "WordPerfect for IBM Personal Computers" for WordPerfect 5.0 for MS-DOS, (c) 1988 Corel Corporation "WordPerfect for IBM Personal Computers and PC Networks," for WordPerfect 5.1 for MS-DOS, (c) 1990 Corel Corporation "Reference for Computers Running Windows 3.0 or Higher" for WordPerfect 5.1 for Windows, (c) 1991 Corel Corporation APPLIES TO
| Article Translations
|


Back to the top
