Office XP Chart Component Does Not Repaint Correctly After Calling Load Method (289853)



The information in this article applies to:

  • Microsoft Office XP Web Components

This article was previously published under Q289853

SYMPTOMS

An Office Web Components 10.0 Chart control is inserted into a Web page by using the <Object> tag. When the Load() method is used to add XML data to the Chart control, the control appears stretched or compressed. Calling the Chart control's Repaint() method temporarily corrects the problem, but when the Web page loses and regains focus, the issue reappears.

CAUSE

This issue can occur if the XML data that is loaded into the Chart control contains <Width> and <Height> tags. If the values of Width and Height do not match the values that are set in the <Object> tag of the Web page, the Chart control sets its zoom factor to make the data match the size of the control.

RESOLUTION

To resolve the issue, make sure that the <Width> and <Height> tags in the XML data match the <Width> and <Height> tags in the Web page. Alternatively, remove the <Width> and <Height> tags from the XML page. The size defaults to the size that is specified by the <Object> tag.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Modification Type:MajorLast Reviewed:9/5/2001
Keywords:kbbug kbOfficeWebChart KB289853