I’m using WebBrowser control to take screen shots of web pages and I’m able to get it working using IViewObject.Draw(). My question is that how can I draw partial region of the control. For example from (0px, 0px) to (200px, 200px).
Any insights?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I found a solution pretty much close to what I want. I ran JQuery scripts in the
WebBrowserusingInvokeScript()and hid all the controls in the page except what I want to take a screen shot. It worked well.http://www.codeproject.com/KB/graphics/html2image.aspx