2012-12-02 21 views
0

我想填寫這個表格,但我很難做到這一點。 這裏是網頁自動填寫這個網頁

Untitled form

我試過,但沒有奏效

wb.Document.GetElementById("entry_0").InnerText = textBox1.Text; 

,我不知道如何點擊提交按鈕

+0

你想編輯一個谷歌文檔?爲什麼不使用谷歌的API? –

+1

如果我對每一個說「我嘗試過但沒有成功」的問題有一美元的話,我可以放棄我的工作,用這些錢來啓動我自己的Stack Overflow站點,並有二十一點和妓女。 – siride

+0

@BradChristie不,我只是想要它填寫它 –

回答

0
IHTMLElementCollection m_hec; 

foreach (HTMLInputElementClass he in m_hec) 
    { 
     if (he.getAttribute("name").ToString() == "FIELD[]") 
      if (he.getAttribute("value") != null) 
       lstInput.Add(he.getAttribute("value").ToString()); 
      else 
       lstInput.Add(""); 
    } 

here