Printing to File Results in a 0 (zero) Byte Print File

Last reviewed: February 5, 1998
Article ID: Q112166
6.00 6.00a 6.00c WINDOWS kbprint buglist6.00 buglist6.00a buglist6.00c fixlist7.00

The information in this article applies to:

  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c

SYMPTOMS

When you print to a file, Word for Windows may truncate the filename of the file you create and place it in the wrong location. When Word does this, it also places a second file in the correct location, with the correct filename, but the size of this file is 0 (zero) bytes. This happens whether you print to a file by selecting the Print To File option in the File Print dialog box or by selecting FILE: as the output port under Printers in Windows Control Panel.

For example, if you print to the following file

   C:\WINDOWS\MSAPPS\EQUATION\LONGNAME\OUTPUT1.PRN

Word creates a file named OUTP in the EQUATION subdirectory, and Word creates a file named OUTPUT1.PRN in the LONGNAME subdirectory (the correct location), but OUTPUT1.PRN has a file size of 0 bytes.

CAUSE

Word truncates the name of your print file and places it in the wrong directory if either of the following conditions exist:

  1. The path contains more than one directory and one subdirectory (two levels) AND the entire path (excluding the filename) contains more than 11 characters. For example:

          C:\DIRECTRY\SUBDIR1\SUBDIR2\OUTPUT1.PRN
    

    By contrast, Word does NOT truncate the filename of the following print file, even though the file is located more than two levels deep in the directory structure, because the entire path consists of only 11 characters:

          C:\USER\ME\94\JAN\OUTPUT1.PRN
    

  2. Any directory name contains more than eight characters, even if the path contains only one directory and one subdirectory. For example:

          C:\DIRECTRY.NAM\SUBDIR\OUTPUT1.PRN
    

STATUS

Microsoft has confirmed this to be a problem in Word versions 6.0, 6.0a and 6.0c for Windows. This problem was corrected in Word version 7.0 for Windows 95.

WORKAROUNDS

Method 1: Place the print file no deeper than two levels deep in the

          directory structure. Make sure neither the directory nor the
          subdirectory name has more than 8 characters.

Method 2: Place the file deeper than the second directory level if the
          entire path consists of 11 or fewer characters.


KBCategory: kbprint buglist6.00 buglist6.00a buglist6.00c fixlist7.00
KBSubCategory:
Additional reference words: 6.00 missing lost lose zero incorrect 6.00c
word6 winword

Version : 6.00 6.00a 6.00c
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.