Microsoft KB Archive/211391

= OFF: Printer Name Not Listed in Print Dialog Box =

Article ID: 211391

Article Last Modified on 1/23/2007

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition
 * Microsoft Excel 97 Standard Edition
 * Microsoft Project 98 Standard Edition
 * Microsoft Windows 95
 * Microsoft Windows 98 Standard Edition

-



This article was previously published under Q211391



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you try to print your workbook, the printer name does not appear in the Name box in the Print dialog box. However, the same printer does appear in the Print dialog box of other Microsoft Office programs. This problem may occur when you have just one or two printers installed.



CAUSE
This problem may occur because Microsoft Excel cannot read the printer information if either of the following conditions is true:


 * The Devices section of the Win.ini file contains incomplete or incorrect information.

-or-


 * User information in the Windows registry is corrupted.

Note that if you remove the Win.ini file, or if it becomes corrupted, and you then restart Microsoft Windows, a new Win.ini file is created. However, the new Win.ini file contains only the Desktop and/or Embedding sections. The Devices section is missing.



WORKAROUND
To work around this problem, use either either of the following workarounds.

Workaround 1: Repair the Win.ini File
Use any of the following methods to correct this problem with the Win.ini file.

Method 1: Reinstall All Printer Drivers
Because one damaged printer driver can sometimes have damaging side-effects for the other drivers installed, remove and then reinstall the printer driver. In some cases you may need to remove all of the installed printers and then reinstall them. This will re-create the required information for the Devices section, as well as write the correct entries for the Ports, Printer Ports, and Windows sections in the Win.ini file.

For information about how to install a new printer driver, use the appropriate method for your operating system.

Microsoft Windows 95
Click the Search button in Windows 95 Help and type:

printer drivers, installing

Microsoft Windows 98
Click the Search button in Windows 98 Help and type:

printer setup

Method 2: Correct the Win.ini File
Locate the Win.ini file and correct the Devices section. To do so, follow these steps:  Open the Win.ini file in Notepad. The Win.ini file is located in your Windows folder. In the Win.ini file, find the [Devices] section.  The Devices section should list the friendly name of the printer, followed by an equal sign, the driver name, a comma, and then the port or network path. The following is a sample [Devices] section: [Devices] HP LaserJet 4/4M=HPPCL5MS,LPT1: HP LaserJet IIISi=HPPCL5MS,\\Server\Sharename Remark the line by placing a semicolon before the printer name as in the following example:      ;HP LaserJet 4/4M=HPPCL5MS,LPT1: Save the Win.ini file and close Notepad, and then reinstall the printer driver to create the new entry. 

Method 3: Create a New Win.ini File
If neither Method 1 nor Method 2 resolves your problem, you can create a new Win.ini file that contains the correct information.

To do this, rename the Win.ini file to Win.old, and reinstall Windows 95 or Windows 98. Windows detects that you are reinstalling, and displays a dialog box with the title Run Setup Again? The dialog box gives you two options. Select the first option (to restore Windows files that are changed or corrupted) and reinstall Windows.

This method re-creates a new, complete Win.ini file with all of the required sections.

If the new Win.ini file seems to correct the problem that you are troubleshooting, you can copy and paste application-specific sections from the Win.old file.

Workaround 2: Rebuild the User.dat Registry
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To correct this problem with the Windows registry file, User.dat, follow these steps:  Restart Windows in MS-DOS mode. At the MS-DOS prompt, type the following lines

cd\windows

attrib -s -h -r user.dat

attrib -s -h -r user.da0

where  is the name of your Windows folder.</li> Type the following lines to rename the User.dat file:

ren user.dat user.old

ren user.da0 user.dat

</li> Restart Windows.</li></ol>

Additional query words: XL2000 missing absent disappear blank empty available no listed dropdown printers not in

Keywords: kbprb kbprint KB211391

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.