<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
  <channel>
    <title>HtmlEditor</title>
    <link>http://www.itwriting.com/phorum/list.php?3</link>
    <description><![CDATA[For discussion of the .Net HTMLEditor control]]></description>
    <language>EN</language>
    <pubDate>Tue, 04 Nov 2003 11:39:51 +0000</pubDate>
    <lastBuildDate>Tue, 04 Nov 2003 11:39:51 +0000</lastBuildDate>
    <category>HtmlEditor</category>
    <generator>Phorum 5.1.25</generator>
    <ttl>60</ttl>
    <item>
      <title>Re: m_htmldoc.body doesnot refresh with LoadDocument()</title>
      <link>http://www.itwriting.com/phorum/read.php?3,1076,1091#msg-1091</link>
      <author>Atara Halamish</author>
      <description><![CDATA[Thanks.<br />
<br />
The simple solution is what I needed.<br />
<br />
Atara.<br />
<br />
]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,1076,1091#msg-1091</guid>
      <pubDate>Tue, 04 Nov 2003 11:39:51 +0000</pubDate>
    </item>
    <item>
      <title>Re: m_htmldoc.body doesnot refresh with LoadDocument()</title>
      <link>http://www.itwriting.com/phorum/read.php?3,1076,1083#msg-1083</link>
      <author>Tim</author>
      <description><![CDATA[For testing, you can use DoEvents:<br />
<br />
- call LoadDocument<br />
<br />
while (htmlEditor1.ReadyState != &quot;complete&quot;)<br />
 {<br />
 Application.DoEvents();<br />
 }<br />
<br />
- now work with the new document<br />
<br />
A more robust solution is to handle the control's ReadyStateChanged event. The ReadyState is a property of the event args.<br />
<br />
Tim]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,1076,1083#msg-1083</guid>
      <pubDate>Sun, 02 Nov 2003 16:04:31 +0000</pubDate>
    </item>
    <item>
      <title>Re: m_htmldoc.body doesnot refresh with LoadDocument()</title>
      <link>http://www.itwriting.com/phorum/read.php?3,1076,1082#msg-1082</link>
      <author>Atara Halamish</author>
      <description><![CDATA[No, I did not.<br />
<br />
Where and how should I do this?<br />
<br />
Atara.]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,1076,1082#msg-1082</guid>
      <pubDate>Sun, 02 Nov 2003 11:16:48 +0000</pubDate>
    </item>
    <item>
      <title>Re: m_htmldoc.body doesnot refresh with LoadDocument()</title>
      <link>http://www.itwriting.com/phorum/read.php?3,1076,1077#msg-1077</link>
      <author>Tim</author>
      <description><![CDATA[Are you waiting for readyState to go to &quot;complete&quot; before inspecting the body element?<br />
<br />
When I tried your code it worked fine with the demo app.<br />
<br />
TIm]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,1076,1077#msg-1077</guid>
      <pubDate>Thu, 30 Oct 2003 15:37:17 +0000</pubDate>
    </item>
    <item>
      <title>m_htmldoc.body doesnot refresh with LoadDocument()</title>
      <link>http://www.itwriting.com/phorum/read.php?3,1076,1076#msg-1076</link>
      <author>Atara Halamish</author>
      <description><![CDATA[I would like to use this control because it is much better than using microsoft mshtml.<br />
<br />
In my application I dynamically change the doc, using -<br />
      System.Text.StringBuilder sb = new System.Text.StringBuilder();<br />
      sb.Append(&quot;&lt;html&gt;&lt;head&gt;&quot;);<br />
      sb.Append(&quot;&lt;STYLE TYPE='text/css'&gt; ... &lt;/STYLE&gt;&quot;);<br />
      sb.Append(&quot;&lt;/head&gt;&quot;);<br />
      sb.Append(&quot;&lt;BODY id='imcBODY' scrolls='no' border='0px' &gt;&quot;);<br />
      sb.Append(&quot;&lt;TABLE id='imcTable' cellspacing='0' cellpadding='2' cols='1' width='100%' border='0'&gt;&quot;);<br />
      ...<br />
      sb.Append(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);<br />
      this.LoadDocument(sb.ToString());<br />
and it is works fine.<br />
<br />
My Problem: I need to know the bottom of the document.<br />
<br />
with mshtml I could use -<br />
    mshtml.HTMLDocument doc = this.m_htmldoc;<br />
    mshtml.HTMLBodyClass docBody  = (mshtml.HTMLBodyClass)(doc.body);<br />
    int bodyScrollHeight  = docBody.scrollHeight;<br />
<br />
but when using HTMlEditor &lt;Body&gt; allways contains only &lt;p&gt;&lt;/p&gt;<br />
even though I can see the all HTML I have loaded in the control.<br />
<br />
what do I need to add in order that  this.m_htmldoc.body will update?<br />
<br />
Thanks.<br />
<br />
]]></description>
      <category>HtmlEditor</category>
      <guid isPermaLink="true">http://www.itwriting.com/phorum/read.php?3,1076,1076#msg-1076</guid>
      <pubDate>Thu, 30 Oct 2003 14:38:11 +0000</pubDate>
    </item>
  </channel>
</rss>
