2009-08-07 4 views
1

WebBrowser 컨트롤을 만들고 있습니다.WebBrowser 컨트롤에 모의 데이터 추가

webBrowser = new WebBrowser(); 
webBrowser.Navigate("File.html"); 

파일의 HTML 태그가 페이지에 있습니다. html 파일에 삽입하고자하는 모의 데이터가 있습니다. 그렇게 할 수있는 방법이 있습니까? 모의 데이터는 html 파일의 컨트롤과 바인딩됩니다.

답변

0
IHTMLTxtRange txt = (IHTMLTxtRange)Document.selection.createRange(); 
txt.pasteHTML(HtmlString); 

public IHTMLDocument2 Document 
{ 
     get 
     { 
      return webBrowser.Document as IHTMLDocument2; 
     } 
} 
관련 문제