Microsoft KB Archive/214394

= The column width is not the same when printed in Excel =

Article ID: 214394

Article Last Modified on 1/24/2007

-

APPLIES TO


 * Microsoft Office Excel 2003
 * Microsoft Excel 2002 Standard Edition
 * Microsoft Excel 2000 Standard Edition
 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q214394





For a Microsoft Excel 97 and earlier version of this article, see 163621.



SYMPTOMS
When you print or preview a worksheet, the column widths fail to be printed or appear as they appear on the screen in normal view.



CAUSE
Depending on the fonts you use, column widths and row heights may appear differently when you print or view a worksheet in print preview. This behavior occurs when you use proportionally spaced fonts, such as a proportional TrueType font.

This problem does not occur when you use monospace fonts (fonts with fixed widths), such as Courier New. The discrepancy in font metrics is a function of how Microsoft Windows reports the font information to Microsoft Excel.



WORKAROUND
To work around the column width problem, use any of the following methods.

Method 1: Use a monospace font

 * 1) Select the cells that contain the data. On the Format menu, click Cells.
 * 2) In the Format Cells dialog box, click the Font tab and select a monospace font, such as Courier New.

Method 2: Manually resize the column

 * 1) Drag the boundary on the right side of the column heading until the column is the width you want.

-or-

Select the column you want to resize, point to Column on the Format menu and click Width. Type a smaller number and click OK.
 * 1) On the File menu, click Print Preview to preview the page.
 * 2) Repeat steps 1 and 2 as necessary until the column appears correctly.

Method 3: Change the font of the Normal style
Change the font of the Normal style to match the font used in the worksheet:
 * 1) Press CTRL+A to select all columns and rows in the workbook.
 * 2) On the Format menu, click Style.
 * 3) In the Style name list, click Normal. Then, click Modify.
 * 4) On the Font tab, select the correct font (whatever font you are using in the workbook).
 * 5) Click OK twice.



MORE INFORMATION
Most printers offer a much higher resolution (300 or 600 dots per inch) than a computer screen (72 dpi). Therefore, information that is displayed on the screen is rendered differently than the printed output. When you select a column or row, and then use the AutoFit command, the font metrics that are used on the screen are different than the metrics the printer uses; some characters for some fonts may use a fractional value.

For example, a font may report 9.1 pixels, but because a display driver is unable to work with fractional amounts, it rounds the amount to the nearest whole pixel value. In this example, 9.1 pixels is rounded down to 9.0 pixels. When a higher resolution printer renders the view in print preview or is used when you print the worksheet, the characters may be printed at a resolution of 9.1 pixels. Because the column width is calculated based on the rounded whole number value, the printed output of the column width is different from the displayed column width. This discrepancy is particularly apparent when you use the AutoFit command to resize columns that contain long text strings.

