Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use MSXML2.ServerXMLHTTP to get an excel file

Status
Not open for further replies.

jadec

MIS
Jan 22, 2004
87
0
0
US
Hi,

I try to use MSXML2.ServerXMLHTTP to get an excel file and display on line, I got error on the last line:
response.write httpdoc.responseText

Please see the following code:

Code:
queryString = "[URL unfurl="true"]http://myipaddress/reports/WRP0553.XLS"[/URL]
  Dim httpdoc
  Set httpdoc = Server.CreateObject("MSXML2.ServerXMLHTTP")
  httpdoc.Open "GET", queryString, False
  httpdoc.Send
  Response.ContentType = "application/vnd.ms-excel"
  response.write httpdoc.responseText

Please help !!!
Thanks a lot ahead !!!
 

maybe if you tell us what the error says, we might be able to help you..

A smile is worth a thousand kind words. So smile, it's easy! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top