<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55286.aspx</link><pubDate>Tue, 25 May 2010 13:26:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55286</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55286.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55286</wfw:commentRss><description>&lt;p&gt;I rebuilt everything and now it is working.&amp;nbsp; Since I rebuit everything I am not sure what it was that was changed to make it work.&lt;/p&gt;
&lt;p&gt;I thank you very much for your help, I had put a lot of time into this and I was just not getting anywhere.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t know what to say but just thanks!&lt;/p&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55275.aspx</link><pubDate>Tue, 25 May 2010 04:50:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55275</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55275</wfw:commentRss><description>&lt;p&gt;I find it very hard to believe that even after changing it to that code, strRichText still has the value &amp;quot;namespace.fieldName.&amp;quot; Are you sure you&amp;#39;re not making some mistake in redeploying the web service and that it&amp;#39;s not running a previous build of the code?&lt;/p&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55265.aspx</link><pubDate>Mon, 24 May 2010 18:54:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55265</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55265.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55265</wfw:commentRss><description>&lt;p&gt;I used the exact code you sent.&amp;nbsp; I copied it and pasted it into by webService then I changed the last string variable from &lt;strong&gt;richTextStr&lt;/strong&gt; to &lt;strong&gt;strRichText&lt;/strong&gt; because that is the varable I pass to my webService.&amp;nbsp; (This is the only occurance of &lt;strong&gt;strRichText&lt;/strong&gt; in my webservice).&lt;/p&gt;
&lt;p&gt;The code looks like this:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; richText = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; node &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myInstructs.txtRichText.Any)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;richText.Append(node.OuterXml);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strRichText = richText.ToString();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Everything compiles and runs with no detectable error.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55263.aspx</link><pubDate>Mon, 24 May 2010 18:44:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55263</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55263.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55263</wfw:commentRss><description>&lt;p&gt;Could you show us the exact code you tried, based on my recent post?&lt;/p&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55262.aspx</link><pubDate>Mon, 24 May 2010 18:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55262</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55262.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55262</wfw:commentRss><description>&lt;p&gt;When I do this I get the same thing that I get by just trying to get a string value.&amp;nbsp; richTextStr = &amp;quot;namespace.RichTextFieldName&amp;quot; (of course this is&amp;nbsp;my&amp;nbsp;actual namespace&amp;nbsp;and my richText field name)&lt;/p&gt;
&lt;p&gt;I even tried node.InnerXML, node.InnerText, and node.Value&amp;nbsp;but I get the same results for all of them, just the namespace and field name.&lt;/p&gt;
&lt;p&gt;I am wondering if this indicates some other error because I continue to get the same thing even when I change what I am looking for?&lt;/p&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55261.aspx</link><pubDate>Mon, 24 May 2010 17:10:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55261</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55261.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55261</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Most likely, the rich text contents of your field are being deserialized as an array of XmlNodes called &lt;b&gt;Any&lt;/b&gt;.&amp;nbsp; If that&amp;#39;s the case, you should be able to get the XHTML with something like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; richText = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;StringBuilder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; node &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myInstructs.txtRichText.Any)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; richText.Append(node.OuterXml);&lt;br /&gt;}&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; richTextStr = richText.ToString();&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55258.aspx</link><pubDate>Mon, 24 May 2010 16:10:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55258</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55258.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55258</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t find any option to get InnerHTML.&lt;/p&gt;
&lt;p&gt;The only option I have is to convert it to a string.&amp;nbsp; DotNet recognizes this as a richtext field as distinct from a string field so I have to convert it to something, but string is the only real option I have.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see where DotNet has a richText datatype even though it recognizes that InfoPath does have one.&lt;/p&gt;</description></item><item><title>Re: How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55164.aspx</link><pubDate>Fri, 21 May 2010 05:41:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55164</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55164.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55164</wfw:commentRss><description>&lt;p&gt;may be you should try for innerxml&lt;/p&gt;</description></item><item><title>How can I grab the XHTML out of a RichTextBox control in my webservice?</title><link>https://www.infopathdev.com:443/forums/thread/55150.aspx</link><pubDate>Thu, 20 May 2010 20:24:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:55150</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/55150.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=55150</wfw:commentRss><description>&lt;p&gt;I am trying to create an InfoPath 2007 form that allows the user to enter information into a richTextBox control.&amp;nbsp; In my web service I want to grab the xhtml that is in the richTextBox and save it as a string into my database so I can display it later in a different application.&lt;/p&gt;
&lt;p&gt;I am using Visual Studio and C# but I can&amp;#39;t seem to get the &amp;quot;content&amp;quot; of the richTextBox into a string.&amp;nbsp; I don&amp;#39;t want just the text that was entered, I need the xhtml that is in the richTextBox.&lt;/p&gt;
&lt;p&gt;In my webservice if I just attempt get the&amp;nbsp;value of my richTextbox like the following, it returns the name of the richTextBox control.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;string &lt;font size="2"&gt;strRichText = myInstructs.txtRichText.ToString();&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;(myInstructs is a class created from mySchema)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;So how do I get the &amp;quot;contents&amp;quot; of the richTextBox into a string?&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>