Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages
Started by Timon Meyer
Mon, 08 Nov 2004 09:18
IHTMLElementRender problems with <!DOCTYPE ...> tag?
Author: Timon Meyer
Date: Mon, 08 Nov 2004 09:18
Date: Mon, 08 Nov 2004 09:18
18 lines
1757 bytes
1757 bytes
Hello, Thanks Remy Lebeau I got my program working. My program captures the TCppWebBrowser content into a BMP file using the DrawToDC function of IHTMLElementRender interface which is working properly for 90% of internet sites/pages. But for some internet sites/pages the result BMP keeps black or partially black (see attachment under usegroup borland.public.attachments) and some objects e.g. the textbox do not appear. The site I tested is http://www.web.de a popular online eMail provider in Germany. To find out whats the problem I downloaded the HTML source of www.web.de to my PC, added a <base href="www.web.de"> to make all relative links working. I found out that it has to do with the <!DOCTYPE ... > tag. When I remove this tag completeley the capturing works well! Any ideas where the problem is located? Does the DrawToDC not support rendering HTML pages with DOCTYPEs? Thanks for any help!
Re: IHTMLElementRender problems with <!DOCTYPE ...> tag?
Author: Remy Lebeau (TeamB)
Date: Mon, 08 Nov 2004 17:06
Date: Mon, 08 Nov 2004 17:06
16 lines
1507 bytes
1507 bytes
"Timon Meyer" <timon@mustek.de> wrote in message news:418f39e6$1@newsgroups.borland.com... > My program captures the TCppWebBrowser content into a > BMP file using the DrawToDC function of IHTMLElementRender > interface which is working properly for 90% of internet sites/pages. > But for some internet sites/pages the result BMP keeps black or > partially black (see attachment under usegroup borland.public.attachments) > and some objects e.g. the textbox do not appear. Please go to http://www.deja.com and do a search. There have been many discussions regarding problems with using IHTMLElementRender. Gambit
Re: IHTMLElementRender problems with <!DOCTYPE ...> tag?
Author: Timon Meyer
Date: Tue, 09 Nov 2004 07:53
Date: Tue, 09 Nov 2004 07:53
7 lines
1197 bytes
1197 bytes
Hi, thanks for reply but under www.deja.com there is no information about that <!Doctype ...> problem or any hint that could bring me closer to the problem! ...Timon
Re: IHTMLElementRender problems with <!DOCTYPE ...> tag?
Author: Timon Meyer
Date: Wed, 17 Nov 2004 18:14
Date: Wed, 17 Nov 2004 18:14
7 lines
1162 bytes
1162 bytes
Hello, DrawToDC has problems with pages that use the <!DOCTYPE> tag, so DrawToDC renders pages only in Quirks-Mode. For my purposes it is not enough and I try to find a better way. Thanks anyway to all!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads