Article ID: 294901
This article was previously published under Q294901
When you print a TEXTAREA element that is larger than a single page, Internet Explorer only prints the first page of the TEXTAREA.
To work around this problem, hide the TEXTAREA element, and copy the contents of each TEXTAREA in a newly created DIV element during the onBeforePrint event. After you print the page, remove the DIV element during the onAfterPrint event, and the TEXTAREA becomes visible again. See the "More Information" section for a code sample that demonstrates this workaround.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
The following code illustrates how to reproduce this problem:
In the actual results, only one page appears in preview, and only one page is printed. In the expected results, several pages should appear in preview, and all of the pages should print.
WorkaroundThe following code illustrates how to hide the TEXTAREA elements and replace them with DIV elements that contain the contents of the initial TEXTAREA elements:
For more information, see the following Microsoft Web site:
Introduction to Regular ExpressionsFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Article ID: 294901 - Last Review: September 29, 2012 - Revision: 4.0
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.