TypeCasting Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • padiyathdeepak
    New Member
    • Sep 2007
    • 3

    TypeCasting Error

    Hi,

    I am Deepak.. I am on a task of automating IE using C#.net.. I came across a post

    http://blog.vivekjisht u.com/2006/02/submitting-form-while-automating-ie.html


    (like converting a COM object to Interface) the statement is as follows


    HTMLDocument HTMLDoc;
    HTMLElementColl ection HTMLCol;
    HTMLDoc = (HTMLDocument)W BBrowser.Docume nt; HTMLCol=(HTMLEl ementCollection )HTMLDoc.getEle mentsByTagName( "input");

    (The bold line is creating the bug...
    .Can you please advice me a way to submit the form or you give me an idea of gacutil and regasm

    Thanks,,

    Deepak Padiyath
Working...