Microsoft KB Archive/71121: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - "<" to "<")
Line 17: Line 17:
When using a header file in conjunction with a Print Merge in Microsoft Word for MS-DOS version 5.50, the DATA instruction within the main document needs to have the following syntax:
When using a header file in conjunction with a Print Merge in Microsoft Word for MS-DOS version 5.50, the DATA instruction within the main document needs to have the following syntax:


&lt;&lt;DATA HeaderFileName,DataDocumentName&gt;&gt;
<<DATA HeaderFileName,DataDocumentName&gt;&gt;


-or-
-or-


&lt;&lt;DATA Header.doc,Datafile.doc&gt;&gt;
<<DATA Header.doc,Datafile.doc&gt;&gt;


&lt;&lt; (left chevron) is produced by pressing CTRL+[ (left bracket) &gt;&gt; (right chevron) is produced by pressing CTRL+] (right bracket)
<< (left chevron) is produced by pressing CTRL+[ (left bracket) &gt;&gt; (right chevron) is produced by pressing CTRL+] (right bracket)


If there is a space before the name of the data document (Datafile.doc in the example above), the following error will result:
If there is a space before the name of the data document (Datafile.doc in the example above), the following error will result:

Revision as of 09:35, 21 July 2020

Word 5.50: Filename Not Valid with Print Merge Header File

PSS ID Number: Q71121 Article last modified on 11-02-1994

5.50 6.00

MS-DOS

The information in this article applies to:
- Microsoft Word for MS-DOS versions 5.5, 6.0

SUMMARY

When using a header file in conjunction with a Print Merge in Microsoft Word for MS-DOS version 5.50, the DATA instruction within the main document needs to have the following syntax:

<<DATA HeaderFileName,DataDocumentName>>

-or-

<<DATA Header.doc,Datafile.doc>>

<< (left chevron) is produced by pressing CTRL+[ (left bracket) >> (right chevron) is produced by pressing CTRL+] (right bracket)

If there is a space before the name of the data document (Datafile.doc in the example above), the following error will result:

The filename is not valid. Header.doc, Datafile.doc

This problem was corrected in version 6.0 of Word.

Word 5.50 does not allow a space to appear before the name of the data document in the DATA instruction.

KBCategory: kbother KBSubcategory: kbmerge Additional reference words: error data instruction statement main ============================================================================= Copyright Microsoft Corporation 1994.