BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to transfer contents of TCppWebBrowser into an TImage

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Yavuz OZTURK
Guest





PostPosted: Thu Jun 16, 2005 7:00 am    Post subject: How to transfer contents of TCppWebBrowser into an TImage Reply with quote



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





PostPosted: Thu Jun 16, 2005 5:04 pm    Post subject: Re: How to transfer contents of TCppWebBrowser into an TImag Reply with quote



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





PostPosted: Thu Jun 16, 2005 6:12 pm    Post subject: Re: How to transfer contents of TCppWebBrowser into an TImag Reply with quote




"Yavuz OZTURK" <yozturk (AT) aselsan (DOT) com.tr> wrote


Quote:
How can I transfer the contents of TCppWebBrowser into the canvas of
TImage
component?

Have a look at the following discussion:

http://groups-beta.google.com/group/borland.public.cppbuilder.internet.web/browse_frm/thread/9c51eda80d523333/320d7f1bcec777dd?q=tcppwebbrowser+canvas&rnum=3#320d7f1bcec777dd


Gambit



Back to top
Yavuz OZTURK
Guest





PostPosted: Fri Jun 17, 2005 5:39 am    Post subject: Re: How to transfer contents of TCppWebBrowser into an TImag Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.