Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
|
Save Web Page to MHT FileThis ASP example downloads the Yahoo! home page and saves it to an MHT file. <%@ Language=VBScript %>
<html>
<head>
</head>
<body>
<%
' *****************************************************
' ASP script to save a Web page to an MHT file.
' *****************************************************
set mht=Server.CreateObject("Chilkat.MHT")
mht.UnlockComponent "UnlockCode"
'***** Get the actual Web Page ******
mht.GetAndSaveMHT "http://www.yahoo.com",Server.MapPath("yahoo.mht")
response.write "Saved Yahoo! Home Page"
set mht = nothing
%>
</body>
</html>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.