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
Visual Basic Example Source to Save Web Page to MHTThis Visual Basic example program saves a Web Page to an MHT file that contains all HTML, frames, style sheets, images, etc. ' Visual Basic example program to save a Web page to an MHT file.
Private Sub Command1_Click()
Dim mht As New ChilkatMHT
Label1.Caption = "Please wait..."
Label1.Refresh
mht.UnlockComponent "UnlockCode"
success = mht.GetAndSaveMHT("http://www.yahoo.com/", "yahoo.mht")
mht.SaveLastError "log.xml"
Label1.Caption = "Finished, check log.xml for errors."
Label1.Refresh
End Sub
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.