Re: programmatically capture web page as internet archive (MHT)
From: Michael Harris \(MVP\) ("Michael)
Date: 05/13/04
- Next message: Aaron J. Scott: "Re: programmatically capture web page as internet archive (MHT)"
- Previous message: Michael Harris \(MVP\): "Re: Can not write string to file (ascii mode) when string contains chars with bit 8 set"
- In reply to: Bruce Hensley: "programmatically capture web page as internet archive (MHT)"
- Next in thread: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Reply: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Reply: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 May 2004 18:37:41 -0700
> We have some ASP pages on the corporate intranet that report various
> business statistics. We would like to capture a snapshot of these
> reports each night about midnight by running a scheduled script.
>
> We've been unsuccessful at finding any examples of how a script can
> capture a web page, preferably to an internet archive file (MHT).
>
> We've been able to build a kludge using Word VBA to generate an HTML
> file, but it requires some cleanup after capture. We were hoping for
> something that might do the equivalent of IE's File>Save As>Web
> Archive, but from script.
url = "http://www.yahoo.com"
path = "c:\_temp\yahoo.mht"
Const wdFormatWebArchive = 9
set word = createobject("word.application")
set doc = word.documents.open(url)
doc.saveas path,wdFormatWebArchive
doc.close
word.quit
Disclaimer: Server side Office automation is neither recommended nor
supported by Microsoft...
Q257757 - INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/default.aspx?kbid=257757
-- Michael Harris Microsoft.MVP.Scripting Sammamish WA US
- Next message: Aaron J. Scott: "Re: programmatically capture web page as internet archive (MHT)"
- Previous message: Michael Harris \(MVP\): "Re: Can not write string to file (ascii mode) when string contains chars with bit 8 set"
- In reply to: Bruce Hensley: "programmatically capture web page as internet archive (MHT)"
- Next in thread: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Reply: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Reply: ljb: "Re: programmatically capture web page as internet archive (MHT)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|