解决方案 »
- 数据库倒序查询
- 高分求救!asp.net 网站,登录时,自动去跳转到default.aspx,系统中也没有这个页面,但是我没有写自动跳转的语句,高人指点!!!
- 100分求一个GridView 分页删除数据的问题
- 使用asp.net访问另一台oracle数据库服务器,需要安装哪些软件?
- freetextbox1.6.3如何设置上传doc、rar文件
- 如何实现这种方案
- ASP.NET项目开发完后,如何实现在另外一台机上浏览效果。
- 请问:我从DataGrid中的修改行中的textbox中取出的值为何不是我在textbox中输入的值,
- 一个不懂的地方?
- 还没有解决关于数据库操作无效的问题!!!100'
- mvc2 中如何把 controller中的json传递到view (view用到了 jquery easyui)?
- ResGen.read.1.tlog怎么删除?
http://www.cnblogs.com/insus/articles/1400266.html
filePath = "C:\\Users\\Public\\Documents\\HiFastdata.xls";
FileStream fs = new FileStream(filePath, FileMode.Open); //打开服务器端EXCEL
HttpContext.Current.Response.BinaryWrite(bytes);
HttpContext.Current.Response.Flush();
HttpContext.Current.Response.End(); //导出EXCEL到客户端本地在这个过程中,需要要在调试的本地电脑上先远程连接服务器,这样才能保证EXCEL成功保存到了服务器,如果没有远程连接,这段代码就会报错求高手解决,不甚感谢!!!!!
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
是服务器上EXCEL的权限问题
谢谢大家