佛山企业如何建网站,网站与网页区别是什么,国外ip地址怎么弄,wordpress怎么提速InfoPath中的Rich Text Box中实现换行的方法#xff1a; InfoPath中的Rich Text Box的内容使用的是XHtml的格式#xff0c;所以\n格式内容是不会表现出来的。 如果我们需要在Rich Text Box中添加两行内容的话#xff0c;我们可以用下面的代码。 X…InfoPath中的Rich Text Box中实现换行的方法 InfoPath中的Rich Text Box的内容使用的是XHtml的格式所以\n格式内容是不会表现出来的。 如果我们需要在Rich Text Box中添加两行内容的话我们可以用下面的代码。 XPathNavigator f1 MainDataSource.CreateNavigator(); XPathNavigator f2 f1.SelectSingleNode(/my:myFields/my:field2, NamespaceManager); XmlReader xr XmlReader.Create(new StringReader(div xmlnshttp://www.w3.org/1999/xhtml abc /div)); f2.AppendChild(xr); xr XmlReader.Create(new StringReader(div xmlnshttp://www.w3.org/1999/xhtmldef/div)); f2.AppendChild(xr); 这样就可以换行了。 转载于:https://www.cnblogs.com/heli/archive/2007/12/26/1015881.html