I\'m creating a DCOM extension for some really old application. Main application has IE control inside of it.
Using C# I was able to get handler for that IE Control as b
Try accessing the frames collection using single threaded architecture (STA Thread). That worked for me, in a functional nunit test that confirmed frame contents. I had the same cast error until I switched thread models.
This should be possible via contentWindow or contentDocument property of iframe element depending on what IE version you have according to http://www.w3schools.com/jsref/prop_frame_contentwindow.asp However I haven't been able to get it working, contentWindow seems to return some element but it has empty document property (in my case with IE9).
Since this question has been posted a while ago, I'm wondering if you managed to make some progress with this?