- 32 名前:デフォルトの名無しさん mailto:sage [2008/04/21(月) 11:48:01 ]
- フレームを利用したWEBページのhtmlソースを取得しようとして
sw = new StreamWriter(filename, false, Encoding.GetEncoding("EUC-JP")); int len = (int)webBrowser1.DocumentStream.Length; byte[] doc = new byte[len]; webBrowser1.DocumentStream.Read(doc, 0, len); Encoding enc = Encoding.GetEncoding(webBrowser1.Document.Encoding); sw.Write(enc.GetString(doc)); sw.Close(); とDocumentCompletedイベントに記述したのですが、webbrowserでは表示できているにも拘わらず、 ファイル側にはフレームに未対応のブラウザは〜としか書き込まれません。 何が問題なのでしょうか?
|

|