Microsoft KB Archive/173156

= XL97: Text Is Cut Off When Printing or Viewing a Worksheet =

Article ID: 173156

Article Last Modified on 9/7/2001

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q173156





SYMPTOMS
When you print a worksheet or view a worksheet in print preview or page break preview, the text and borders of cells at the edge of the page may be truncated or may be printed on another page.



CAUSE
This problem may occur when you apply a combination of rotated text, borders, and the Shrink To Fit formats to a cell.

NOTE: The "More Information" section in this article contains an example that demonstrates this problem.



WORKAROUND
To work around this problem or lessen the severity of this problem, use any of the following methods.

Method 1
In the worksheet, select the range of cells that you want to print, including cells that surround the cells that contain rotated text. Then, point to Print Area on the File menu and click Set Print Area.

Method 2
Clear the Shrink To Fit check box for the cells that contain rotated text. To do this, follow these steps:
 * 1) Select the cells with rotated text.
 * 2) On the Format menu, click Cells. Then, click the Alignment tab.
 * 3) Click to clear the Shrink To Fit check box. Then, click OK.

Method 3
Remove the border from the cells that contain rotated text. To do this, follow these steps:
 * 1) Select the cells with rotated text.
 * 2) On the Format menu, click Cells. Then, click the Border tab.
 * 3) Click None and click OK.

When you print the worksheet or view it in print preview or page break preview, the cells with rotated text appear correctly. Note that it may be necessary to use two or more of these methods to correct the problem.

If the rotated text still does not appear correctly, try deleting page breaks, inserting or removing columns, or manually adjusting the widths of columns in the worksheet.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
This problem occurs because of the way Microsoft Excel calculates the position of page breaks when a column contains cells with rotated text and borders. Normally, when you rotate text in a cell in Microsoft Excel, the cell remains rectangular in shape. However, if you apply a border to the cell, the cell becomes a parallelogram. If the parallelogram crosses a page break, Microsoft Excel may truncate some parts of the cell or may display the parts on another page.

Example
To see an example of the problem, follow these steps:  In Microsoft Excel, create a new workbook. In cell B2 of Sheet1, enter the following text:

This is a test.

 Select cell B2. On the Format menu, click Cells. Click the Alignment tab. In the Degrees box, enter 30. Click to select the Shrink To Fit check box. Click the Border tab. Click Outline and click OK.</li> On the View menu, click Page Break Preview.</li> Click 200% in the Zoom box on the Standard toolbar.

Note that the last part of the text in cell B2 is cut off by the page break to the right of column B.</li> On the File menu, click Print Preview.

Note that parts of the cell are also truncated in print preview.</li> Exit Print Preview by clicking Close.</li> Select cell B2. On the Format menu, click Cells. Click the Alignment tab. Click to clear the Shrink To Fit check box. Click OK.

Note that the text is no longer truncated. However, the border around cell B2 is truncated.</li> Select cells A1:D2. On the File menu, point to Print Area, and then click Set Print Area.</li></ol>

The text and borders of cell B2 are no longer truncated because the print area completely encompasses the cell with the rotated text.

Additional query words: XL97 angle angled cutoff

Keywords: kbprint KB173156

-

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

© Microsoft Corporation. All rights reserved.