本文介绍了在asp.net中的excelsheet中显示数据库表字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让excelsheet出现在网页上..我不想打开excel文件并使用它...我只想在网页上集成excelsheet应用程序..
i want to intigrate excelsheet on to the webpage ..i dont want to open an excel file and use it...i just want to integrate an excelsheet application on the webpage..
推荐答案
<html><head>
<script language=vbscript>
Dim objExcel
Sub chartsheet_onclick()
call OpenWorkbook("c:\test\testfile.xls")
End Sub
Sub OpenWorkbook(strLocation)
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = true
objExcel.Workbooks.Open strLocation
objExcel.UserControl = true
objExcel.Sheets("chart").Visible = True
objExcel.Sheets("sheet1").Visible = False
objExcel.Sheets("sheet2").Visible = False
objExcel.Sheets("sheet3").Visible = False
End Sub
</script>
<title></title></head><body><br>
this is a test page for displaying an excel chart...
<br><br>
<input type=button name=chartsheet value="display excel chart">
</body></html>
或者您可以利用Excel Web App的优势,Microsoft完全免费提供存储.
嵌入Excel工作簿在网页上 [ ^ ]
or you can take advantage of Excel Web App and storage is all free from Microsoft.
Embed an Excel workbook on a web page[^]
这篇关于在asp.net中的excelsheet中显示数据库表字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!