Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > CImage Capture on Internet Explorer after
 

CImage Capture on Internet Explorer after

Hi ,

I am using Mshtml.interopCOM object in C#.Net to track the Browser events.

Sample code:

i am using

//On ie_DownloadComplete event i try to capture a image which should give the next page displayed on IE.(current page)

int Handle = GetForegroundWindow();

foreach (InternetExplorer ie in shellWindows)

{

if (ie.HWND == Handle)

{

ie.DownloadComplete += new DWebBrowserEvents2_DownloadCompleteEventHandler(ie_DownloadComplete);

}

}

void ie_DownloadComplete()

{

//Capture Image

}

For Example:

I click on Advanced search(Link) on Google Website.I need to capture the new loaded Advanced search page,Before i do my next operation on IE.

Any Help??

Prashanthmallu  Thursday, August 14, 2008 6:57 AM

Hi Prashanthmallu

Sorry I am not familiar with the image capture, so I just find an example on CodeProject

Image Capture Whole Web Page using C#

http://www.codeproject.com/KB/graphics/IECapture.aspx?print=true

I think you can create a WebBrowser instance, set the captured URL to the WebBrowser and capture the whole page as an image.

Wish you can solve your problem soon.

Best Regards,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Monday, August 18, 2008 10:56 AM

Hi Prashanthmallu

Sorry I am not familiar with the image capture, so I just find an example on CodeProject

Image Capture Whole Web Page using C#

http://www.codeproject.com/KB/graphics/IECapture.aspx?print=true

I think you can create a WebBrowser instance, set the captured URL to the WebBrowser and capture the whole page as an image.

Wish you can solve your problem soon.

Best Regards,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Monday, August 18, 2008 10:56 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem with scrollbars of panel in C#
• Simpler example of SmartClient web service file retrieval than AppraisalWorkbench?
• Terrarium Server Beta installation problems
• Trouble with DataGridView - Exception: Object reference not set to an instance of an object.
• ProgressBar Thread
• TaskVision WebService Source
• How did they achieve the Windows XP Look?
• Server Install Error: The parameter is incorrect. (taskvisionsource_1.1.0.0.msi)
• Big Bug Question
• Naka and Mari - Is Terrarium fun over ?