在asp.net中的excelsheet中显示数据库表字段 [英] display database table fields in excelsheet in asp.net

查看:95
本文介绍了在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..

推荐答案

是否要在网页中嵌入excel文件?

http://stackoverflow.com/questions/168280/how-do-i-show-an-embedded-excel-file-in-a-网页 [
Are you looking to embed an excel file in your webpage ?

http://stackoverflow.com/questions/168280/how-do-i-show-an-embedded-excel-file-in-a-webpage[^]

or try doing this

<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[^]


使用Visual Studio2008.其中包含excel插件& excel模板)
Using visual studio 2008..Which contains excel addins & excel templates)


这篇关于在asp.net中的excelsheet中显示数据库表字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆