473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Saving web pages as mht

I have a requirement to save web pages from a different site on to my server
as mht files ...and later i would need to email them to different
recipients.

I am using c# for my development.
Email part is easy but i have no clue how to do the saving as mht thing.
can any one suggest how can this happen....?

Regards,
Nov 15 '05 #1
2 7342
I project that I inherited at work create MHT files for web pages. The way
that our system does it is that we use the CDO object (interop) which has
facilities for creating MHT files.

Alternatively (which is how our program should be doing it), you would pull
each file from the website (using something like the HttpWebRequest class)
and package it in an MHT. I believe the MHT has a standard text format
(basically a multipart document). You could package all the content into
this file.

"Von Shean" <vo******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a requirement to save web pages from a different site on to my server as mht files ...and later i would need to email them to different
recipients.

I am using c# for my development.
Email part is easy but i have no clue how to do the saving as mht thing.
can any one suggest how can this happen....?

Regards,

Nov 15 '05 #2
Thanks..

I tried out what you said..i used the following code
CDO.MessageClass message = new CDO.MessageClass();

message.CreateMHTMLBody("http://www.google.com/",

CDO.CdoMHTMLFlags.cdoSuppressNone, "", "");

ADODB.Stream stream = message.GetStream();

stream.SaveToFile("fanms.mht",
ADODB.SaveOptionsEnum.adSaveCreateOverWrite);
but i keep getting 'Interface not supported at CreateMHTMLBody...

any clues to this........

Regards
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:#V**************@TK2MSFTNGP09.phx.gbl...
I project that I inherited at work create MHT files for web pages. The way that our system does it is that we use the CDO object (interop) which has
facilities for creating MHT files.

Alternatively (which is how our program should be doing it), you would pull each file from the website (using something like the HttpWebRequest class)
and package it in an MHT. I believe the MHT has a standard text format
(basically a multipart document). You could package all the content into
this file.

"Von Shean" <vo******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have a requirement to save web pages from a different site on to my

server
as mht files ...and later i would need to email them to different
recipients.

I am using c# for my development.
Email part is easy but i have no clue how to do the saving as mht thing.
can any one suggest how can this happen....?

Regards,


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. ...
1
by: Lovely Angel For You | last post by:
Dear Friends Hope you all doing great. I have this problem. When I try to save any ASP page, I get the message that "The page will not save correctly". Even though I go ahead and when I go...
0
by: soberhi | last post by:
I am new to Access (and Access programming) so kindly be gentle. I did try to search around before asking this question. I am simplifying my problem in the hopes that this scaled down version...
1
by: matt | last post by:
I'm using this to scan Multiple pages into Access 2k :- Call KillTempFile strTempFile = TempFile(False, "scan") Me.scanControl.MultiPage = True Me.scanControl.ScanTo = FileOnly...
0
by: George Birbilis | last post by:
I have a problem with a big ASP.net app with users saving pages to the disk and then opening them from the disk, filing them and trying to post them back. Seems IE posts them back to the original...
3
by: Denis Georgievski | last post by:
I am optimizing my web application written in ASP/VB.NET 1.1. I have number of pages that have dropdown list server controls that contain large number of items. Before redesigning the data access...
3
by: RCS | last post by:
I have an app that I have different "sections" that I want to switch back and forth from, all while having the server maintain viewstate for each page. In other words, when I am on Page1.aspx and...
4
by: vincemoon | last post by:
I can see from http://72.14.203.104/search?q=cache:6f-yXCR3f8kJ:www.readol.net/books/computer/WEb/XML%2520Programming/xmlproghtml/32ch08b.htm+%22metadata+about+any+entity%22&hl=en&gl=us&ct=clnk&cd=3...
4
by: Annie | last post by:
Hi guys, I am having a weired situation that don't know how to handle it ... I have master pages, the master page contains a dynaic menu which is set up in the database and has page url, name,...
0
by: SukumarMaddineni1 | last post by:
Hi.. I am saving microsoft doc using win32com. It saving perfectly. When I save a big document like 2000 pages, it is taking time. So meanwhile I need to show user that out of 2000 pages this many...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.