Save the page to Word

xiaoxiao2021-03-05  30

SET XML = Server.createObject ("Microsoft.xmlhttp") XML.Open "get", "www.163.com", False 'Pull The Data from The Web Page Xml.send

set oStream = server.CreateObject ( "ADODB.Stream") oStream.Type = 1 oStream.Mode = 3 oStream.Open () oStream.Write (xml.responseBody) oStream.Position = 0 oStream.Type = 2 oStream.Charset = "UTF-8" 'Result = ostream.readtext () ostream.savetofile (Server.MAppath ("aa.doc") ostream.close ()

Set ostream = Nothing 'response.write (result)' response.redirect "aa.xls" set XML = Nothing

转载请注明原文地址:https://www.9cbs.com/read-33907.html

New Post(0)