Thursday, May 1, 2014

Using SHDocVW, unable to retrieve the Open IES

Hi GayathriVeera,


I can't reproduce your problem. I'm using Windows 8.1 X64/IE11/Visual Studio 2013, there's no problem when I get all the IE page count and iterate the URL of the IE pages. I'm using this code snippet:



string url = string.Empty;
SHDocVw.ShellWindows SWs = new SHDocVw.ShellWindows();
Console.WriteLine(string.Format("The IE count is {0}.",SWs.Count.ToString()));
foreach (SHDocVw.InternetExplorer internetExplorer in SWs)
{
url = internetExplorer.LocationURL;
Console.WriteLine(url);
}



It will work fine every time. Please show more details, e.g. OS version, IE version, .net framework version...


I think there could be some problems with your IE, try to repair your IE following the steps in this KB from Microsoft:


http://ift.tt/1lBP3Qr


Or update your IE to the latest version.




We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

Click HERE to participate the survey.



No comments:

Post a Comment