Function fn_doresult (result)
{
If (result = "")
{
Alert ("operation failed ");
Return;
}
VaR xmldom = new activexobject ("Microsoft. xmldom ");
Xmldom. loadxml (result );
VaR rownum = 0;
VaR colnum = 0;
Rownum = xmldom.doc umentelement. childnodes. length;
// If you find the information
If (rownum> 0)
{
Document. form1.cellweb1. workbookreadonly = false; // cancel read-only for report writing
VaR firstrow = xmldom.doc umentelement. childnodes [0]; // The first line
//
Document. form1.cellweb1. setcelldouble (3,26, 0, firstrow. childnodes [0]. Text );
Document. form1.cellweb1. setcelldouble (4,26, 0, firstrow. childnodes [1]. Text );
Document. form1.cellweb1. setcelldouble (5, 26, 0, firstrow. childnodes [2]. Text );
Document. form1.cellweb1. setcelldouble (6, 26, 0, firstrow. childnodes [3]. Text );
Document. form1.cellweb1. setcelldouble (7,26, 0, firstrow. childnodes [4]. Text );
Document. form1.cellweb1. setcelldouble (8, 26, 0, firstrow. childnodes [5]. Text );
//
Document. form1.cellweb1. createchart (, 0); // create a Statistical Chart // create a chart using data in the specified area
Document. form1.cellweb1. setcharttype (0, 0, 0); // you can specify the type column chart of the chart.
Document. form1.cellweb1. setyaxistittle ("count", 0, 0); // y axis title
Document. form1.cellweb1. movechartonarea (,); // move the chart to the specified position on the specified Table Page
Document. form1.cellweb1. setxlabelarea );
Document. form1.cellweb1. showlegend (false, 0, 0 );
Document. form1.cellweb1. showcharttittle (false,); // whether to display the legend showcharttittle
Document. form1.cellweb1. showyaxistittle (true, 0, 0 );
Document. form1.cellweb1. showxaxistittle (false, 0, 0 );
Document. form1.cellweb1. allowdragchart = false; // do not drag or drop a chart. Modify the chart.
Document. form1.cellweb1. showdatasign (true, 0, 0); // display the value
Document. form1.cellweb1. setchartfont ("", 14, 0, 0 );
// Set unit information
VaR strvalue = Document. All. unitctl1_txtunittext.value;
Document. form1.cellweb1. setcellstring (2, 23, 0, strvalue );
}
Else
{
Alert ("operation failed ");
}
// Report display after statistics are completed
Tab_pagedata.style.display = "Block ";
Tab_waitmsg.style.display = "NONE ";
}