| View previous topic :: View next topic |
| Author |
Message |
Yavuz OZTURK Guest
|
Posted: Thu Jun 16, 2005 7:00 am Post subject: How to transfer contents of TCppWebBrowser into an TImage |
|
|
Hi,
I show an html page in TCppWebBrowser component. I want to transfer the
contents of TCppWebBrowser into the canvas of TImage component. When I use:
CppWebBrowser->PaintTo(Image->Canvas, 0, 0)
a white page is displayed in TImage component.
How can I transfer the contents of TCppWebBrowser into the canvas of TImage
component?
or
How can I read the canvas of TCppWebBrowser?
Any help is welcome.
-Cheers
-Yavuz
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Thu Jun 16, 2005 5:04 pm Post subject: Re: How to transfer contents of TCppWebBrowser into an TImag |
|
|
Yavuz OZTURK wrote:
| Quote: | I show an html page in TCppWebBrowser component. I want to transfer the
contents of TCppWebBrowser into the canvas of TImage component. When I use:
|
If a html page is big then TCppWebBrowser only displays a part
of the page. It is possible to copy the visible part to a bitmap
and then save and or display that bitmap or put it in a Tit is not
possible in this way. What do you need ?
Hans.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
|
| Back to top |
|
 |
Yavuz OZTURK Guest
|
Posted: Fri Jun 17, 2005 5:39 am Post subject: Re: How to transfer contents of TCppWebBrowser into an TImag |
|
|
Honestly, I wanted to print the contets of the web page through the
TPrinter' s BeginDoc() and EndDoc() functions. Fortunately, I found that
printing feature can be achived by sending OleCommands to TCppWebBrowser
through TCppWebBrowser' s InterfaceControl object. Now I can print-preview
and print the contents of the TCppWebBrowser' s contents. Anyhow, thank you
for your attention to my question.
-Cheers
-Yavuz
"Hans Galema" <notused (AT) notused (DOT) nl> wrote
| Quote: | Yavuz OZTURK wrote:
I show an html page in TCppWebBrowser component. I want to transfer the
contents of TCppWebBrowser into the canvas of TImage component. When I
use:
If a html page is big then TCppWebBrowser only displays a part
of the page. It is possible to copy the visible part to a bitmap
and then save and or display that bitmap or put it in a Tit is not
possible in this way. What do you need ?
Hans.
|
|
|
| Back to top |
|
 |
|