PRB: Axis Minimum and Maximum Properties Return Incorrect Values in OnLoad Event (256627)
The information in this article applies to:
- Microsoft Office XP Web Components
- Microsoft Office Chart Component 9.0
- Microsoft Visual Basic, Scripting Edition 5.0
This article was previously published under Q256627 SYMPTOMS When you use the Office Chart component, the Minimum and Maximum properties of a WCScaling object return incorrect values when called during the onLoad event of a Web page in Internet Explorer. These properties might
return incorrect values such as zero or a number that is very small.
CAUSE With Internet Explorer, there is no guarantee that that all
controls on a Web page have an associated window until the Web page finishes
loading. Therefore, the Minimum and Maximum properties for a WCScaling object may be uninitialized during the window's onLoad event and attempts to retrieve the Minimum and Maximum properties could result in inconsistent values. RESOLUTION To work around this problem, retrieve the Minimum or Maximum property for a WCScaling object after Internet Explorer has associated a window with the
Chart component. If you want to retrieve these properties when your Web page
loads, use the window's setTimeout method in the onLoad event to allow the window to finish loading. This work around is
illustrated in the "More Information" section. REFERENCESProgramming Microsoft Office 2000 Web Components by Dave Stearns, ISBN 0-7356-0794-X, Chapter 6 "Dynamic and
Real-Time Charting" For more information on the Office Web
Components, please visit the following support site: For sample code that demonstrates solutions using the Office 2000
Web Components with VBScript and ASP, see the following article in the
Microsoft Knowledge Base: 258187 OWebComp.exe Contains Scripting Samples for the Office Web Components
Modification Type: | Minor | Last Reviewed: | 8/23/2005 |
---|
Keywords: | kbOfficeWebChart kbprb KB256627 |
---|
|