Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aspµ¼³öexcelÒ»

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%response.ContentType   ="application/vnd.ms-excel"  
%>  
<%
Set xlApplication = Server.CreateObject("Excel.Application") 'µ÷ÓÃexcel¶ÔÏó
xlApplication.Visible = False 'ÎÞÐè´ò¿ªexcel
xlApplication.SheetsInNewWorkbook=1 'Ö¸¶¨excelÖбíµÄÊýÁ¿
xlApplication.Workbooks.Add 'Ìí¼Ó¹¤×÷²¾
Set xlWorksheet = xlApplication.Worksheets(1) 'Éú³ÉµÚ1¸ö¹¤×÷±íµÄ×Ó¶ÔÏó
xlWorksheet.name="ͳ¼Æ" 'Ö¸¶¨¹¤×÷±íÃû³Æ
'Ö¸¶¨ÁеĿí¶ÈÒÔ¼°¶ÔÆë·½Ê½
xlApplication.ActiveSheet.Columns(1).ColumnWidth=5
xlApplication.ActiveSheet.Columns(1).HorizontalAlignment=3
xlApplication.ActiveSheet.Columns(2).ColumnWidth=40
xlApplication.ActiveSheet.Columns(2).HorizontalAlignment=1
xlApplication.ActiveSheet.Columns(3).ColumnWidth=5
xlApplication.ActiveSheet.Columns(3).HorizontalAlignment=3
xlApplication.ActiveSheet.Columns(4).ColumnWidth=15
xlApplication.ActiveSheet.Columns(4).HorizontalAlignment=1
xlApplication.ActiveSheet.Columns(5).ColumnWidth=12
xlApplication.ActiveSheet.Columns(5).HorizontalAlignment=1
xlApplication.ActiveSheet.Columns(6).ColumnWidth=12
xlApplication.ActiveSheet.Columns(6).HorizontalAlignment=3
'xlApplication.ActiveSheet.Rows(i).RowHeight = 30'Ðеĸ߶È
'Ö¸¶¨Áеĸ߶ÈÒÔ¼°Ìض¨ÁÐ
xlWorksheet.Range(xlWorksheet.Cells(1,1), xlWorksheet.Cells(1,6)).MergeCells =True 'ºÏ²¢ÁÐ
xlWorksheet.Range("A1").value="2005Äêͳ¼Æ"
xlWorksheet.Range("A1").font.Size=14'×ÖÌå´óС
xlWorksheet.Range("A1").font.bold=true'´ÖÌå
xlWorksheet.Range("A1").HorizontalAlignment=3'ˮƽ¶ÔÆë
xlWorksheet.Range("A1").VerticalAlignment=3'´¹Ö±¶ÔÆë
xlWorksheet.Cells(2,1).Value = "ÐòºÅ"
xlWorksheet.Cells(2,2).Value = "±êÌâ"
xlWorksheet.Cells(2,3).Value = "ͼ"
xlWorksheet.Cells(2,4).Value = "²¿ÃÅ"
xlWorksheet.Cells(2,5).Value = "×÷Õß"
xlWorksheet.Cells(2,6).Value = "ʱ¼ä"
xlWorksheet.Range("A2:F2").Borders.LineStyle=1
'--------------------------------------------------×Ô¼º¿É×öÑ­»·i=i+1£¨Êý¾Ý¿âÊý¾Ý£©
'xlWorksheet.Cells(2


Ïà¹ØÎĵµ£º

aspÎļþËÑË÷

aspÎļþËÑË÷
 
 
 
<%
'*************Set newsearch=new SearchFile 'ÉùÃ÷ *************
'*************newsearch.Folder="F:+E:"'´«ÈëËÑË÷Ô´*************
'*************newsearch.keyword="»ã±à"     '¹Ø¼ü´Ê*************
'*************newsearch.Search &nbs ......

aspÕýÔò±í´ïʽÅжÏÊÇ·ñÊÇÊý×Ö

'ÅжÏÊÇ·ñÊÇÊý×Ö£¨°üÀ¨ÕûÊýºÍ¸¡µãÊý£©
function IsNumber(str)
if RegPatrn("^-?[1-9]\d*$",str) or RegPatrn("^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$",str) then
IsNumber=true
else
IsNumber=false
end if
end function
'ÕýÔò±í´ïʽÅжÏÊÇ·ñÆ¥Åä
Function RegPatrn(patrn, strng)
RegPatrn = false
Di ......

4¡¢´¿ASP´úÂëÉú³Éͼ±íº¯Êý——±ýͼ

4¡¢´¿ASP´úÂëÉú³Éͼ±íº¯Êý——±ýͼ
<%dim total(7,1)
total(1,0)="Öйú¾­Óª±¨"
total(2,0)="ÕÐÆ¸Íø"
total(3,0)="51Job"
total(4,0)="ÐÂÃñÍí±¨"
total(5,0)="ÐÂÎÅÍí±¨"
total(6,0)="ÄÏ·½ÖÜÄ©"
total(7,0)="Ñò³ÇÍí±¨"
total(1,1)=200
total(2,1)=1200
total(3,1)=900
total(4,1)=600
total(5,1)=1 ......

ASP³£Óú¯ÊýÏê½â

Array()
¡¡¡¡FUNCTION: ·µ»ØÒ»¸öÊý×é
¡¡¡¡SYNTAX: Array(list)
¡¡¡¡ARGUMENTS: ×Ö·û£¬Êý×Ö¾ù¿É
¡¡¡¡EXAMPLE: <%
¡¡¡¡Dim myArray()
¡¡¡¡For i = 1 to 7
¡¡¡¡Redim Preserve myArray(i)
¡¡¡¡myArray(i) = WeekdayName(i)
¡¡¡¡Next
¡¡¡¡%[/IMG]
¡¡¡¡RESULT: ½¨Á¢ÁËÒ»¸ö°üº¬7¸öÔªËØµÄÊý×émyArray
¡ ......

aspÎļþ¶Áд

<%
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldr = fso.GetFolder("c:\Program Files")
Response.Write "¸¸Îļþ¼ÐÃû×ÖÊÇ£º" & fldr & "<br>"
If fldr.IsRootFolder = True Then
   Response.Write "¸ÃÎļþ¼ÐÊÇÒ»¸ùÎļþ¼Ð" & "<br>"
Else
   Resp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ