Paul,

 

TWebBrowser is based on MS Internet Explorer .. although the COM-model is pretty flexible and extendable (like user namespaces, etc) nothing is really easy and finding the right interfaces and how to use them is always  tricky. I found the http://www.bsalsa.com/product.html to be a very useful resource to learn about everything IE related (next to MSDN)

 

If you just simply want to have access to the html inside a twebbrowser then following article will do:

http://delphi.about.com/od/internetintranet/l/aa062904a.htm

 

 

if you need a more useful html editor (with html table resizing, etc) then I suggest following links:

http://groups.yahoo.com/group/KSDhtmlEdit/

http://www.profgrid.com/dhtmledit.html

 

 

Kind Regards,
Stefan Mueller



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul A Norman
Sent: Tuesday, 23 May 2006 5:11 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] The Programmer's Grail? Streaming Twebbrowser ordescendantto DB Blob and back

 

Many thanks Stefan,

 

I'm still interested if any one has any ideas on what to look for in TWebBrowser that handles the rendered HTML. The browser can be put into DesignMode, and objects dragged around the design layer. If access is available to that layer for streaming in and out it would be a much neater solution. (That design layer is rendered back as HTML for file saving).
 

That layer is what I hope to get a lead in on if possible.

 

There are available interfaces that I have not been able yet to find specifically  relevant materials for e.g. .IHTMLEditDesigner

 

I'm suspecting that I may need to cast TwebBrowser back to TOleControl and that something in there might give me asscess to what I need,

 

[Delphi] type TOleControl = class (Controls.TWinControl, IServiceProvider, ISimpleFrameSite, IPropertyNotifySink, IDispatch, IOleInPlaceFrame, IOleInPlaceSite, IOleControlSite, IOleClientSite, IInterface

 

I'm afloat in a sea of virtual interfaces . . .

 

Paul
 

On 23/05/06, Stefan Mueller <[EMAIL PROTECTED]> wrote:

Here is a link to a namespace documentation and example sourcecode that I used in one of my products:

http://www.bsalsa.com/name_space.html

 

… as for reading images out .. the easiest is actually to scan the html file for image-tags (don't forget css-links, table backgrounds, etc). You will need to do this anyway and replace those linktags with your own namespace handler url.

 

Kind Regards,
Stefan Mueller


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Paul A Norman
Sent: Tuesday, 23 May 2006 2:46 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] The Programmer's Grail? Streaming Twebbrowser or descendantto DB Blob and back

 

I am reposting this here, as there are people with expertese who might not see it in the other placs I have put it.

And I suspect it opens up an area of great usefuleness beyond Twebbrowser.

I have been looking (as many seem to!) into streaming the content of
Twebbrowser or TembeddedWB into a data base Blob field, seems to be the
grail of this kind of programming!

And generally I want to be able to live re-edit the returned material
in a Twebbrowser window.

Wanting to retain images etc, I have looked at MHT and it seems that it
is possible to use a NameSpace set up to stream them back to the

browser window once in the DB, but I can find no other way than
initally saving to disk to get an MHT out of a browser back to the DB
blob field. I want to avoid using the disk because of the overheads.

So I want to know how I might get a binary representation of the
actual rendering of the HTML in Twebbrowser into a stream and into a
blob and back when wanted. NOT as MHT or HTML! As already rendered
content this stream would be very fast to re-process back into a
Twebbrowser.

It just seems that there must be something like a TCanvas in the
Twebbrowser. But a pure TCanvas may not render the 'data' back into the
browser as edit able material.

** Is there something in how Twebbrowser renders the HTML, a 'binary
layer' that can be streamed back and forward?

** Something that has all the rendered elements and <object> <img> <etc
..> as binary available for streaming?
Is component streaming an sensible avenue?



i.e. TStream.WriteComponent

Paul

 


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

 

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to