WD2000: Blank Lines Not Suppressed with AddressLayout AutoText (209752)
The information in this article applies to:
This article was previously published under Q209752 SYMPTOMS
When you create an envelope in Microsoft Word 2000, and use a personal AutoText entry called AddressLayout and select a contact from your Personal Address Book that contains an empty field, a blank line may appear in the result rather than being suppressed.
For example, if you have defined an AutoText entry called AddressLayout that contains the following predefined address properties:
<PR_GIVEN_NAME> <PR_SURNAME>
<PR_COMPANY_NAME>
<PR_STREET_ADDRESS>
<PR_LOCALITY>, <PR_STATE_OR_PROVINCE> <PR_POSTAL_CODE>
and your contact has an empty Company Name field, the result contains a blank line instead of the Company Name and looks similar to this:
Amy Jones
1 Main St.
Anytown, WA 12345
CAUSE
Word is not using a conditional statement to evaluate whether blank lines exist in the Personal Address Book and is not suppressing the blank lines in the result.
RESOLUTION
To suppress a blank line when a field, such as the Company Name, is blank, write a statement that evaluates whether the field is empty and suppresses the blank line if the field is empty.
In the following example, brace characters and soft carriage returns are used to evaluate and suppress the blank lines from your result.
Replace your existing AddressLayout AutoText entry with a statement that looks similar to the following:
NOTE: Press SHIFT+ENTER rather than ENTER after each line of the address except the last line.
<PR_GIVEN_NAME> <PR_SURNAME>
{{<PR_COMPANY_NAME>
}{<PR_STREET_ADDRESS>
}<PR_LOCALITY> | {<PR_STREET_ADDRESS>
}<PR_LOCALITY>}, <PR_STATE_OR_PROVINCE> <PR_POSTAL_CODE>
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/6/2000 |
---|
Keywords: | kbbug kbemail kbinterop KB209752 |
---|
|