Html中使用M$控件系列之OWC-数据透视表篇
发表时间:2024-01-21 来源:明辉站整理相关软件相关文章人气:
[摘要]<form name="form1" id="form1"> <input name=strFile id=strFile type=file>数据表名:<input name=strTName strTName type=te...
<form name="form1" id="form1">
<input name=strFile id=strFile type=file>数据表名:<input name=strTName strTName type=text><input type=button name="btnRead" id="btnRead" value="Read Data" onclick="VBSCRIPT:ReadData()">
</form>
<br>
<object id="PivotTable1" classid="CLSID:0002E520-0000-0000-C000-000000000046">
</object>
<script language="VBScript">
<!--
Sub ReadData()
strPath = document.form1.strFile.value
strName = document.form1.strTName.value
PivotTable1.ConnectionString = "provider=microsoft.jet.oledb.4.0;" & _
"data source=" & strPath
'数据表名
PivotTable1.DataMember = strName
'展开
PivotTable1.ActiveView.AutoLayout
End Sub
-->
</script>