Nie wiem czy robie blad (i ew. gdzie) ale kiedy korzystam z WebBrowser.OleObject.document.write(string)
albo WebBrowser.OleObject.document.body.innerHTML = string; to po prostu wsykakuje blad o tresci: 'Access violotation at address 0045E2B7 in module (...) Read of address 00000000'. Czy ktos sie orientuje co jest nie tak (ps. D7)
To znow ja :P Ale musze sie pochwalic bo rozwiazalem problem nr 2 (naturalnie nie sam tylko na podstawie http://www.swissdelphicenter.ch :P) i o to o co chodzi. Caly trik tego co tam jest to sprawdzanie wszystkich obrazkow ktore znajduja sie w dokumencie - nie bede kopiowal tylko podam adres: http://www.swissdelphicenter.ch/torry/showcode.php?id=1601
ALE UWAGA! Ja napotkalem maly problem - otoz moje Delphi nie posiada komponentu ktory w Uses na tej stronie wpisany jest jako 'MSHTML_TLB'. Rozwiazelem ten problem kasujac nastepujace linijki:
w var:
Document: IHtmlDocument2;
w begin
ImageFileSize := (Document.Images.Item(i, 0) as IHTMLImgElement).FileSize;
// Retrieves the entire URL that the browser uses to locate the image
ImageHref := (Document.Images.Item(i, 0) as IHTMLImgElement).Href;
// Retrieves a text alternative to the graphic.
ImageTextAlternative := (Document.Images.Item(i, 0) as IHTMLImgElement).alt;
// Show image information in a TListbox
a takze nalezy poprawic ta linijke:
ListBox1.Items.Add(Format('%s : %d x %d Pixels; %s Bytes; %s',
[ImageHref, ImageWidth, ImageHeight, ImageFileSize, ImageTextAlternative]));
PS. celowo nie kasowalem komentarzy
Ale moze ktos wie jak rozwiazac problem pobierania rozmiaru itd. - tego czego wykorzysac nie moge a teraz tak sobie mysle ze by sie przydalo :P Chodzi glownie o komponent ktory musialem usunac z Uses (jak juz wspominalem D7)