Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Internet
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 11-10-2005
teatry teatry is offline
Miembro
 
Registrado: sep 2005
Posts: 23
Poder: 0
teatry Va por buen camino
Como Guardar una pagina web completa, con todo e imagenes

Utilizo El EmbeddedWb y me preguntaba si hay alguna manera de guardar las paginas web en forma completa, incluyendo las imagenes.
gracias de antemano
Responder Con Cita
  #2  
Antiguo 11-10-2005
RazoR RazoR is offline
Miembro
 
Registrado: sep 2005
Posts: 23
Poder: 0
RazoR Va por buen camino
Googleando encontré ésto, no lo pude testear porque no tengo tiempo. Fijate si te sirve:

Saving Full Internet Explorer pages as MHT...
This is a Delphi conversion of the routine contributed by Onega
found at http://codeguru.earthweb.com/ieprogr...WholePage.html

MrBaseball34


Código Delphi [-]
//***********************************************************************
// If you don't have these typelibs, import them.
//***********************************************************************
uses Winndows, ..., ADODB_TLB, CDO_TLB;

//***********************************************************************
// SaveWholePage -
//   Procedure to save entire web page as MHT file.
//
//   Parameters:
//   AURL - URL for file to be saved
//   AFileName - MHT FileName you want web page saves.
//   AView - Allows you to view the MHT in TWebBrowser
//   AViewer - WebBrowser control to view the page in.
//
//***********************************************************************
procedure SaveWholePage
 ( AURL:               String
 ; AFileName:       TFileName
 ; AView:              Boolean
 ; AViewer:           TWebBrowser
 );
var
 LMsg: IMessage;
 LConf: IConfiguration;
 LFlds: Fields;
 LStrm: _Stream;
begin
 LMsg := CoMessage.Create;
 LConf := CoConfiguration.Create;
 try
   LMsg.Configuration := LConf;
   LMsg.CreateMHTMLBody(AURL, cdoSuppressAll, '', '');
   LStrm := LMsg.GetStream;
   LStrm.SaveToFile(AFileName, adSaveCreateOverWrite);
 finally
   LMsg := nil;
   LConf := nil;
   LStrm := nil;
   if AView then
     AViewer.Navigate(AFileName);
 end;
end;
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 21:27:29.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi