Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedded web browser 1

Status
Not open for further replies.

chris1uk

Programmer
Jul 3, 2001
2
GB
Hi!
I have imported TWebBrowser from the IE ActiveX control, but when I do a:

Browser.Navigate('
I get the error message "Not Enough actual parameters".
I have taken a bit of code from a file I found for the method which might help:
Code:
procedure TWebBrowser.Navigate(const URL: WideString; var Flags, TargetFrameName, PostData, Headers: OleVariant);
begin
CreateControl;
FIntf.Navigate(URL, Flags, TargetFrameName, PostData, Headers);
end;
Any ideas how to fix this?
If no-one has any ideas, could someone suggest an alternative web component that works with Delphi 3.

Thanks,
Chris Adams
 
Try This.

The last four parameters passed to Navigate are rarely used and can be filled in with OleVariants. OleVariants are always automatically set to the value UnAssigned, so you do not need to initialize them.



Code:
procedure TForm1.ConnectBtnClick(Sender: TObject);

var

  A, B, C, D: OleVariant;

begin

  WebBrowser1.Navigate(myURLEdit.Text, A, B, C, D);

end;
Billy H

bhogar@acxiom.co.uk
 
:)
Thanks a lot m8, you dont realise how many people you have helped.

Chris
 
I am using the Twebbrowser Component in Delphi 6. For some reason the enter key doesn't seem to work. For example when I am typing in a text area and I press the enter key the cursor does not go to a newline.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top