易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP无法关闭的EXCEL - Web 开发 / ASP

附件地址http://download.csdn.net/source/2341319
   

由于这里不能上传附件,只能放在这里了

VB code:

<%

strAddr = Server.MapPath(".")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set f = objFSO.GetFile(strAddr&"\1.xls")
if f.attributes<>0 then
f.attributes = 0
end if
Set Excel_File = CreateObject("Excel.Application")
Excel_File.AutomationSecurity=3
Set Excel_WorkBook=Excel_File.Workbooks.open(strAddr&"\1.xls")
Set Excel_Sheet = Excel_WorkBook.Worksheets(1)
'Excel_Sheet.Range("A1" , "A2" ).EntireRow.Delete
'Excel_Sheet.Rows(UsedRange.Rows.count).Delete
If objFSO.FileExists(strAddr&"\Excel\1.xls") Then
objFSO.DeleteFile strAddr&"\Excel\1.xls",True
End If
Set objFSO = Nothing
Excel_WorkBook.SaveAs strAddr&"\Excel\1.xls"
Excel_WorkBook.Save
Excel_File.DisplayAlerts = False
Excel_WorkBook.Close
Excel_WorkBook.Close
Excel_File.Quit
Excel_File.Quit
Set Excel_Sheet = Nothing
Set Excel_WorkBook = Nothing
Set Excel_File = Nothing

%>



麻烦各位高手给看看为什么了
没人会么


  If objFSO.File


相关问答:

asp.net批量上传图片 - .NET技术 / ASP.NET

asp.net批量上传图片最好有源码,在线等!!!!!!!
源码很长的。

参考

C# code:
HttpFileCollection files = HttpContext.Current.Request.Files;
if (files.Count <= 1)
{
......

asp初学问题 - Web 开发 / ASP

Microsoft JET Database Engine '80040e07' 
标准表达式中数据类型不匹配。 
\wwwroot\update.asp, line 20
--------------------------------------------------------------------------------
Ho ......

怎样将ASP程序转换为.NET程序 ? - .NET技术 / ASP.NET

怎样将ASP程序转换为.NET程序 ?
找个全才翻译。

手动去写
感觉写过asp的,来写asp.net,上手应该快点。
更能理解asp.net的一些内部技术
asp.net都被封装了

我是做.Net的,对ASP一直没接触到,很陌生。
公 ......

js控制asp空间dropdownlist - .NET技术 / ASP.NET

我有两个dropdownlist都绑好了值,想选中一个dropdownlist中的值,然后在另一个dropdownlist中选中相应的一项。
不是从新绑定第二个dropdownlist,是在已经绑好的值当中选中一个。
我想用js写
求助
你可以把drop ......

ASP。net中怎么调用Com+组建 - .NET技术 / ASP.NET

C# code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;
nam ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号