Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Web Components
error-handling Chart component
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="henri korver, post: 6944705"] We are trying to build a real-time monitor tool for monitoring our websites with the chart component. With a timer event we refresh our charts every second. In this situation it seems that we are facing the limits of the chart component. There were several error messages which I came across that could not be catched - Service error - Data Provider or other Service returned E-Fail status - Stream object cannot be read because it is empty, .... They are all generated from the Office Data Source Control which is apparantly embedded somewhere inside the Chart component. By saving the code below in a .htm file one can reconstruct my problem. <object id=ChartSpace1 classid=CLSID:0002E55D-0000-0000-C000-000000000046 style="width:100%;height:350"></object> <script language=vbs> On Error Resume Next ChartSpace1.ConnectionString = "Provider=MSPersist.1" ChartSpace1.CommandText = "C:\data.xml" ChartSpace1.SetData chDimValues, chDataBound, "pageviews" Set f = CreateObject("Scripting.FileSystemObject") Set t = f.OpenTextFile("C:\data.xml", 2, 0) t.Write ("") ChartSpace1.Refresh </script> IMPORTANT: before running this code first put the file 'data.xml' in de C: directory. The XML code of this file is given below. It is a pardox, but to reconstruct the error one has to start with a proper XML file. ------------------ cut here <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <s:Schema id="RowsetSchema"> <s:ElementType name="row" content="eltOnly" rs:CommandTimeout="30"> <s:AttributeType name="pageviews" rs:number="3" rs:nullable="true" rs:writeunknown="true"> <s:datatype dt:type="int" dt:maxLength="4" rs:precision="10" rs:fixedlength="true"/> </s:AttributeType> <s:extends type="rs:rowbase"/> </s:ElementType> </s:Schema> <rs:data> <z:row EditionName="The edition" minute="19:52" pageviews="5"/> </rs:data> </xml> ------------------------------- [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Microsoft Office
Developer Web Components
error-handling Chart component
Top