ASP.NET将数据库导出到EXCEL问题!
在ASP.NET页面中,实现点击按钮,将数据库的表项导入EXCEL中。异常如下:
用户代码未处理 System.Runtime.InteropServices.COMException
Message="不能使用 '';文件已在使用中。"
Source="Microsoft JET Database Engine"
ErrorCode=-2147467259
StackTrace:
在 ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options)
在 简表2.Automation_ADORecordset() 位置 c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\网上申报系统\简表2.aspx.cs:行号 64
在 简表2.Button1_Click1(Object sender, EventArgs e) 位置 c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\网上申报系统\简表2.aspx.cs:行号 47
在 System.Web.UI.WebControls.Button.OnClick(EventArgs e)
在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
用其他数据库文件没问题的。请各位高人救急!