Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Webbrowser als Bild kopieren (https://www.delphipraxis.net/101803-webbrowser-als-bild-kopieren.html)

taktaky 18. Okt 2007 11:22


Webbrowser als Bild kopieren
 
bei mir bekomme ich diese Meldung :
[Error] Unit1.pas(78): Undeclared identifier: 'ShDocVW_TLB'

"Microsoft Internet Controls" wollte ich installieren, sehe aber eine Meldung, dass dies bereits installiert ist
Delphi-Quellcode:
procedure TForm1.btnButton1Click(Sender: TObject);
var
  IDoc1: IHTMLDocument2;
  Web: ShDocVW_TLB.IWebBrowser2; // hier kommt der error ! 
//[Error] Unit1.pas(78): Undeclared identifier: 'ShDocVW_TLB'
  tmpX, tmpY: Integer;
...
Quelle 2

Dax 18. Okt 2007 11:39

Re: Webbrowser als Bild kopieren
 
Zitat:

Zitat von taktaky
"Microsoft Internet Controls" wollte ich installieren, sehe aber eine Meldung, dass dies bereits installiert ist

Dann installier es eben nicht nochmals?


Zitat:

Zitat von taktaky
[delphi]
procedure TForm1.btnButton1Click(Sender: TObject);
var
IDoc1: IHTMLDocument2;
Web: ShDocVW_TLB.IWebBrowser2; // hier kommt der error !
//[Error] Unit1.pas(78): Undeclared identifier: 'ShDocVW_TLB'
tmpX, tmpY: Integer;
...

Unit in uses eingebunden? Langsam reichts mal.

user0815 18. Okt 2007 11:47

Re: Webbrowser als Bild kopieren
 
Evtl. so

Code:
uses
  ShDocVW_TLB;

procedure TForm1.btnButton1Click(Sender: TObject);
var
  IDoc1 : IHTMLDocument2;
  Web  : IWebBrowser2;
  tmpX,
  tmpY : Integer;
begin
  ...
http://www.delphipraxis.net/internal...ct.php?t=21197

taktaky 18. Okt 2007 12:00

Re: Webbrowser als Bild kopieren
 
[quote="user0815"]Evtl. so

Code:
uses
  ShDocVW_TLB;
...
Das habe ich gemacht. Ich erhalte :
[Fatal Error] Unit1.pas(7): File not found: 'ShDocVW_TLB.dcu'
Microsoft Internet Control ist vorinstalliert !

DeddyH 18. Okt 2007 12:23

Re: Webbrowser als Bild kopieren
 
Bei mir (hier Delphi 5) gibt es eine shdocvw.dcu, vielleicht ist die gemeint.

taktaky 18. Okt 2007 12:28

Re: Webbrowser als Bild kopieren
 
Zitat:

Zitat von DeddyH
Bei mir (hier Delphi 5) gibt es eine shdocvw.dcu, vielleicht ist die gemeint.

Was willst damit sagen?

DeddyH 18. Okt 2007 12:29

Re: Webbrowser als Bild kopieren
 
Dass die Unit evtl. gar nicht ShDocVW_TLB heißt.

Progman 18. Okt 2007 12:49

Re: Webbrowser als Bild kopieren
 
In allen vollwertigen Delphi-Versionen ist eine SHDocVw dabei. Beim Platzieren des TWebbrowsers auf ein Form wird die auch automatisch in den Uses eingefügt.

taktaky 18. Okt 2007 13:07

Re: Webbrowser als Bild kopieren
 
Zitat:

Zitat von DeddyH
Dass die Unit evtl. gar nicht ShDocVW_TLB heißt.

Quelle 2

DeddyH 18. Okt 2007 13:15

Re: Webbrowser als Bild kopieren
 
Du hast Dir mal wieder Source kopiert und kommst nun nicht weiter? Dann hilft Dir vielleicht die Windows-Suchfunktion, ich benutze den Webbrowser nie und kann daher nix dazu sagen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:41 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz