🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1488

IHTMLElementRender problems with <!DOCTYPE ...> tag?

#1488
From: Timon Meyer
Date: Mon, 08 Nov 2004 09:18
18 lines
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!
Technical Details
Message-ID: <418f39e6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,11bec5f5af292e77,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Timon Meyer" <timon@mustek.de>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: IHTMLElementRender problems with <!DOCTYPE ...> tag?
Date: Mon, 8 Nov 2004 10:18:26 +0100
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 80.132.183.58
Message-ID: <418f39e6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099905510 80.132.183.58 (8 Nov 2004 01:18:30 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail