ASP operation EXCEL

<%   

'加入图片
 
set   myexcell=CreateObject("Excel.Application")  
 
set   mywork=myexcell.Workbooks.Add  
 
set   Activesheet=myexcell.sheets("sheet1")  
  Activesheet.Pictures.Insert(
"图片地址")  
  mywork.SaveAs
"c:/test.xls"  
  mywork.close  
 
set   mywork=nothing  
 
set   myexcell=nothing  
  %
>

Published 16 original articles · won praise 1 · views 30000 +

Guess you like

Origin blog.csdn.net/wvtjplh/article/details/3897911