By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,867 Members | 1,964 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,867 IT Pros & Developers. It's quick & easy.

How to add Multiple Content-type

syedshaffee
P: 91
Expand|Select|Wrap|Line Numbers
  1. If trim(Session("rstAsset1"))<>"" then
  2.     sqlAssetList = trim(Session("rstAsset1"))
  3. End if
  4.  
  5. Set objRIMSConn = Server.CreateObject("ADODB.Connection")
  6. objRIMSConn.CommandTimeout=0
  7. objRIMSConn.Open RIMS_CONNECT
  8.  
  9. Set rstAssetList = Server.CreateObject("ADODB.Recordset")
  10.  
  11. rstAssetList.Open sqlAssetList , objRIMSConn, 1, 3
  12. bolNoData = rstAssetList.EOF and rstAssetList.BOF
  13.  
  14. Response.ContentType = "application/vnd.ms-excel" 
  15. Response.AddHeader "Content-Disposition", "Attachment; filename=Asset_Returned_List.xls"
Here in want to Give the client to download it in Word format also .. PLS HELP
Jul 11 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.