473,378 Members | 1,607 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,378 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 7344
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.