Вниз
Скачать: CL | DM;

Текст из WebBrowser в Memo   Найти похожие ветки 

 
Info   (2003-01-21 00:51) [0]

Вопрос в сабже. Помогите, плиз!


 
int64 ©   (2003-01-21 01:03) [1]

uses ..., ActiveX;

function SaveDocToStrings(Doc: IDispatch; var AStrings: TStrings): HResult;
var
IpStream: IPersistStreamInit;
AStream: TMemoryStream;
begin
AStream := TMemoryStream.Create;
try
IpStream := doc as IPersistStreamInit;
if not Assigned(IpStream) then Result := S_FALSE else
if Succeeded(IpStream.save(TStreamadapter.Create(AStream), TRUE))
then begin
AStream.Seek(0, 0);
AStrings.LoadFromStream(AStream);
Result := S_OK;
end else Result := S_FALSE;
except
Result := S_FALSE;
end;
AStream.Free;
end;

procedure TForm1.Button1Click(Sender: TObject);
var Strings: TStrings;
begin
Strings:=Memo1.Lines;
SaveDocToStrings(WebBrowser1.Document, Strings);
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.021 c
14-96996
R4D][
2003-01-12 19:17
2003.01.30
Сетевые библиотеки


14-97006
NC
2003-01-13 15:53
2003.01.30
Получение информации и доступ к com2 порту с помощью delphi?


14-97005
Maximator Vetera
2003-01-12 20:52
2003.01.30
Песня


3-96527
oleon
2003-01-13 12:23
2003.01.30
Можно ли написать select из процедуры в MS SQL 2000?


4-97099
vasa
2002-12-17 02:02
2003.01.30
Окно верхнего уровня от дочернего окна..




   Наверх