BUG: Element Behavior Does Not Print or Does Not Appear in Print Preview When You Dynamically Add Content (291372)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q291372 SYMPTOMS
When you add dynamic content to an element behavior, this content does not appear in print preview or when you print, although it is displayed correctly in the Internet Explorer window.
CAUSE
When you add dynamic content to an element behavior, Internet Explorer does not persist this dynamic content. When you click Print or Print Preview, Internet Explorer loads and renders the page again. As a result, the dynamic content that you added after the page loaded is not saved and does not appear in print preview or the printed version.
RESOLUTION
To work around this problem, you can use a "persist" property to save the state of the content and ensure that the dynamic content is printed. For more information, see the sample code in the "More Information" section.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For more information about element behaviors, see the following Microsoft Web site:
For additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
259016 PRB: Detach Method of Binary Behavior Is Never Called
271239 SAMPLE: DLLList.exe Lists Details with Binary Element Behavior
256228 HOWTO: Make Script Element Behaviors Participate in Forms Submission
257353 BUG: Cannot Access FRAMES Collection of Element Behavior
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbbug kbnofix kbprint KB291372 |
---|
|