BUG: The last line of a page may be clipped horizontally when you print an HTML document that contains a table that encloses another table (819658)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.01
  • Microsoft Internet Explorer (Programming) 5.01 SP1
  • Microsoft Internet Explorer (Programming) 5.01 SP2
  • Microsoft Internet Explorer (Programming) 5.01 SP3

SYMPTOMS

When you print a HTML document that contains a table that encloses another table, the last line of a page may be clipped horizontally. You may notice that only the upper portions of the characters that are part of the last line appear on the printed page. In this case, the lower portions of these characters are clipped and these portions do not appear on the current page of your printed document. Additionally, these clipped portions do not appear on the next page of your printed document. However, lines after the last line on the current page appear on the next page of your printed document.

Note This behavior occurs in all versions of Microsoft Internet Explorer 5.01, including Service Pack 1 (SP1), SP2, and SP3.

RESOLUTION

To resolve the behavior that is mentioned in the "Symptoms" section of this article, use either of the following methods:
  • Upgrade the version of Internet Explorer on your computer to version 5.5 or later.
  • In your HTML documents do not enclose one table with another table.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section of this article.

MORE INFORMATION

Steps to reproduce the behavior

  1. Start a text editor such as Notepad.
  2. Add the following HTML code to the text editor:
    <HTML>
    <BODY>
    <TABLE>
      <TBODY>
      <TR>
        <TD>
          <TABLE>
            <TBODY>
            <TR>
              <TD >
    This line may break when you print this page. 
    This line may break when you print this page.
    This line may break when you print this page.
    This line may break when you print this page.
    This line may break when you print this page.
    This line may break when you print this page.
    This line may break when you print this page.
              </TD>
            </TR>
          </TBODY>
        </TABLE>
      </TD>
    </TR>
    </TBODY>
    </TABLE>
    
    </BODY></HTML>
    
  3. Save the text as an HTML file that is named TestHtml.html in the root folder of drive C on your computer.

    Note Repeat the innermost <TR> section multiple times in your HTML code so that your printed document will span multiple pages.
  4. Start Internet Explorer.
  5. In the Address box, type C:\TestHtml.html, and then click Go.
  6. On the File menu, click Print. The Print dialog box appears.

    Note Make sure that you click the Portrait layout orientation.
  7. Click OK to print the TestHtml.html HTML document. You may notice the behavior that is mentioned in the "Symptoms" section of this article.

Modification Type:MajorLast Reviewed:12/18/2003
Keywords:kbpending kbWebBrowser kbtable kbhtml kbbug KB819658 kbAudDeveloper