<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: formatting strings into rich text box</title><link>https://www.infopathdev.com:443/forums/thread/13826.aspx</link><pubDate>Mon, 12 Dec 2005 20:31:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13826</guid><dc:creator>winnipeg</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13826</wfw:commentRss><description>Hi Franck,&lt;br /&gt;&lt;br /&gt;Do you happen to have any sample code on how to do this at all? What I'm looking for is the appendChild you mention. I have a rich text box and when user check a checkbox it appends text to the rich text box. I can get it to work find with normal text with the replace statement but can't seem to get it to work with rich text. The reason I'm going with rich text instead of normal text box is because I need to transform the result into a word document.&lt;br /&gt;&lt;br /&gt;Thanks for any help.&lt;br /&gt;&lt;br /&gt;Howard.</description></item><item><title>Re: formatting strings into rich text box</title><link>https://www.infopathdev.com:443/forums/thread/13825.aspx</link><pubDate>Mon, 24 Oct 2005 23:01:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13825</guid><dc:creator>absMing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13825.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13825</wfw:commentRss><description>thanks for your help</description></item><item><title>Re: formatting strings into rich text box</title><link>https://www.infopathdev.com:443/forums/thread/13824.aspx</link><pubDate>Fri, 21 Oct 2005 14:02:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13824</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13824.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13824</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;You can use \r  and \n in a textbox, as long as you go to Properties / Display Tab and check the "Paragraph breaks" checkbox.&lt;br /&gt;So, you can achieve the display that you are looking for using a textbox, not a Rich Textbox.&lt;br /&gt;If you still want you use a Rich Text Box, which stores XHTML, you need to use appendChild to add lines...(I would stick to option 1).&lt;br /&gt;&lt;br /&gt;Hope that it helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Re: formatting strings into rich text box</title><link>https://www.infopathdev.com:443/forums/thread/13823.aspx</link><pubDate>Fri, 21 Oct 2005 13:36:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13823</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13823.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13823</wfw:commentRss><description>Instead of using "\r" use "\n". "\r" is the code for a hard carriage return, and in this situation would probably be the equivalent of submitting your form if you had a submit form button on your page. "\n" is just the newline character, and is used much more frequently. I've actually never used \r.&lt;br /&gt;&lt;br /&gt;Anyway, if this still doesn't work, I think rich textboxes use HTML to do their formatting so you could try using "&amp;lt;br&amp;gt;" instead.&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>formatting strings into rich text box</title><link>https://www.infopathdev.com:443/forums/thread/12632.aspx</link><pubDate>Fri, 21 Oct 2005 03:23:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12632</guid><dc:creator>absMing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12632.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12632</wfw:commentRss><description>Hi,&lt;br /&gt;I have the following function which is meant to get the values from the textboxes and then apply some formatting so that each value will appear one per line.&lt;br /&gt;&lt;br /&gt;function str()&lt;br /&gt;{	&lt;br /&gt;	var Function_Name = XDocument.DOM.selectSingleNode("/my:myFields/my:Function_Name").text;&lt;br /&gt;	var myRichTextBox_node = XDocument.DOM.selectSingleNode("/my:myFields/my:Purpose");&lt;br /&gt;&lt;br /&gt;	var output = null;&lt;br /&gt;	output = "'********************" + "\r";&lt;br /&gt;	output += "\r" + "'" + "\t" + "FunctionName : " + Function_Name; &lt;br /&gt;&lt;br /&gt;	myRichTextBox_node.text = output;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;correct output should be:&lt;br /&gt;'*********************&lt;br /&gt;'	FunctionName : valueOFvaarFunctionName&lt;br /&gt;&lt;br /&gt;but, the rich text box is ignoring the \r - carriage return&lt;br /&gt;instead i output is a follows:&lt;br /&gt;'*********************'	FunctionName : valueOFvaarFunctionName&lt;br /&gt;&lt;br /&gt;Any suggestions greatly appreciated</description></item></channel></rss>