Rob,

You are to some extend correct that the Win32 code is avaliable in 
Delphi. However the idea of Delphi Dot Net (not using the Borland 
VCL?s) is that you have true un-manage code. That said since we are 
still not running under Vista we have to deal with manage code.

Here is what I have so fare:

I did turn on the ActiveX for the Web Browser which added the following 
two assembles to the projects:

{%DelphiDotNetAssemblyCompiler 'ComImports\Interop.SHDocVw.dll'}
{%DelphiDotNetAssemblyCompiler 'ComImports\AxInterop.SHDocVw.dll'}

And bingo I have the actual Web Browser on my form.

Now the real issue is how to navigate to the correct URL.  In the 
Borland Demo cSharp folder is a C# Web Browser Application that works 
on the Delphi Dot Net (C#). So all I have to do is steal the code ? 
well not so fast:

Self.AxWebBrowserMessage.Navigate(sUrl.ToString, mValue, mValue, 
mValue, mValue);

Since the Navigate methode does not have an overload as in Win32 I have 
to give use four Null Zero Object ? No problem I can created them with:

mValue: Missing;

However the compiler still does not like the way that I call the 
methode.  Any ideas?


Bjarne \v/
Bjarne's Virtual Office at http://www.go2nts.com/bwtoday.html

------------------------------

Message: 5
Date: Mon, 09 Jan 2006 14:09:53 -0600
From: Rob Kennedy <[EMAIL PROTECTED]>
Subject: Re: Rendering HTML pages under Delphi Dot Not (2005 or 2006)
To: "Borland's Delphi Discussion List" <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8; format=flowed

[EMAIL PROTECTED] wrote:
> Guys, I need a little help in regards to doing some Delphi Dot Net
> programming.  Please note that I am trying to code with out the Win32
> part of Delphi and if posible also not using the Delphi VCL. The 
reason
> for the later is that the code can be moved to any Dot Net platform
> like C#.

Win32 is just as accessible under C# as it is under Delphi.

> Displaying a HTML page in from within a standard Dot Net form.  In
> Delphi Win32 we have the TWebBrowser that would reander the HTML page
> within the window.  Do you know what the equuivalent would be in 
eihter
> C# or Delphi Dot Net?

TWebBrowser is nothing more than a wrapper for the Internet Explorer
ActiveX control. I'm pretty sure .Net can use ActiveX controls.

--
Rob


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to