如何在文本框控件中输入值后在c#中打开excel报表 [英] How to open excel report in c# after entering the values in text box control

查看:74
本文介绍了如何在文本框控件中输入值后在c#中打开excel报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,





我有一个网页。它有3个标签框Id,Name,Age和3个文本框控件和一个按钮分别。如果我点击按钮控件我要打开excel表并显示sql中所有相关列,输入的ID应该显示在excel报告中。我怎么能这样做?Plz帮帮我。





提前致谢

Hai,


I am having a web page.It is having 3 label box Id,Name,Age and 3 text box controls and one button respectively.If I click the button control I want to open the excel sheet and display all the related columns from the sql for the entered Id should be displayed in the excel report.How can i do this?Plz help me.


Thanks in advance

推荐答案

请阅读: 如何使用ADO.NET在使用Visual Basic .NET的Excel工作簿中检索和修改记录 [ ^ ]虽然它是VB.NET而不是C#,但这两种语言非常相似。 />


整合Excel和ASP.NET 2.0网站的Word [ ^ ]

C#上传Excel Sheet 2003或2007或2010或更高版本 - 获取Excel工作表信息C# [ ^ ]
Please, read this: How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook With Visual Basic .NET[^] Although it's VB.NET instead C#, but these 2 languages are quite similar.

Integrating Excel and Word with ASP.NET 2.0 Web Sites[^]
C# upload Excel Sheet 2003 or 2007 or 2010 or above - Get Excel sheet info C#[^]


这篇关于如何在文本框控件中输入值后在c#中打开excel报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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