473,485 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using DrawToBitmap on WebBrowser--works for some sites, not others

I want to use DrawToBitmap to generate a "thumbnail" graphic
reflecting a particular web page. The following code successfully
generates a graphic of the web page being viewed in the WebBrowser
control *in some cases.* For example, loading http://www.ebay.fr works
correctly, but attempting to load http://www.ebay.com results in an
empty image.

Bitmap bitmap = new Bitmap(WebBrowser.Width, WebBrowser.Height);
WebBrowser.DrawToBitmap(bitmap, new Rectangle(new Point(),
WebBrowser.Size));
bitmap.Save(saveImagePath, ImageFormat.Png);
bitmap.Dispose();

Any ideas?

Jul 5 '07 #1
0 3063

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1495
by: Frank Maestas | last post by:
Hello, I database table that I need to add checkbox data (using an array) and standar fields. My standard fields insert just fine, as does my array when trying them alone. Together - doesn't...
3
1684
by: ashutosh | last post by:
I am working for a company and working for printer drivers. Most of the work is in ddk, VC++ and C++, gdi calls. I have studied C++ and ddk and VC++ is new for me. Can anybody suggest me some good...
0
781
by: Bobvaq,Bobvaq,,,,,, | last post by:
0
800
by: Found your site in google, and it has a lot of use | last post by:
Found your site in google, and it has a lot of usefull information. Thanx
1
1658
by: madlen | last post by:
I have a list of sites from where I want to scrap the data from.. I can pay you to make some scripts for me. I have already bought some scripts for yellowpages but I want to add some more categories...
3
1145
by: dolphin | last post by:
Hi all Can some recommend some sites about c++?
3
2912
by: khoda | last post by:
Let’s say I have a hash map from strings to a user-defined object of type X. Thoughout the lifetime of my program, I have millions of these objects allocated/free’d. A friend mentioned that I look...
0
6962
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7122
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7169
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6836
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5425
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4862
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3068
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
597
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
253
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.