Carige return appear as plain text and not as a new line - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Carige return appear as plain text and not as a new line Carige return appear as plain text and not as a new line Last post 07-17-2014 02:35 AM by mayaby. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 07-08-2014 10:55 PM mayaby Joined on 04-29-2014 Posts 8 Carige return appear as plain text and not as a new line Reply Contact hi in my form i have a rich text field called rtfNav1 that i want to copy to other rich text field, now when rtfNav1 contain carige return e.g i write maya then "enter" the text is displayed as "<div xmlns="http://www.w3.org/1999/xhtml">maya</div><div xmlns="http://www.w3.org/1999/xhtml"> </div>" my code:Dim doc As XmlDocument = New XmlDocument() Dim elm As XmlElement = doc.CreateElement("div", http://www.w3.org/1999/xhtml)elm = doc.CreateElement("div", "http://www.w3.org/1999/xhtml") elm.InnerText = rtfNav1.InnerXml + elm.InnerText doc.AppendChild(elm) rtfNav.AppendChild(doc.DocumentElement.CreateNavigator()) 07-14-2014 04:01 AM In reply to mayaby Joined on 04-29-2014 Posts 8 Re: Carige return appear as plain text and not as a new line Mark as Not AnswerMark as Answer... Reply Contact how can i use the "enter" key and it will dispayed as a new line and not as a plain text thanks, Maya 07-17-2014 02:35 AM In reply to mayaby Joined on 04-29-2014 Posts 8 Re: Carige return appear as plain text and not as a new line Mark as Not AnswerMark as Answer... Reply Contact i decided to change the rich textbox to textbox and on the Display tab, check “Paragraph breaks”. see complete solution at http://blogs.msdn.com/b/infopath/archive/2005/03/04/385577.aspx Maya Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
hi
in my form i have a rich text field called rtfNav1 that i want to copy to other rich text field, now when rtfNav1 contain carige return e.g i write maya then "enter" the text is displayed as "<div xmlns="http://www.w3.org/1999/xhtml">maya</div><div xmlns="http://www.w3.org/1999/xhtml"> </div>"
my code:
elm.InnerText = rtfNav1.InnerXml + elm.InnerText
doc.AppendChild(elm)
rtfNav.AppendChild(doc.DocumentElement.CreateNavigator())
how can i use the "enter" key and it will dispayed as a new line and not as a plain text
thanks,
Maya
i decided to change the rich textbox to textbox and on the Display tab, check “Paragraph breaks”. see complete solution at http://blogs.msdn.com/b/infopath/archive/2005/03/04/385577.aspx