<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Carriage Return and Line Break</title><link>https://www.infopathdev.com:443/forums/thread/44111.aspx</link><pubDate>Fri, 10 Jul 2009 08:11:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44111</guid><dc:creator>lilmaster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44111</wfw:commentRss><description>&lt;p&gt;Thanks for your suggestion. &lt;/p&gt;&lt;p&gt;Cheers! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Carriage Return and Line Break</title><link>https://www.infopathdev.com:443/forums/thread/44109.aspx</link><pubDate>Fri, 10 Jul 2009 08:00:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44109</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44109</wfw:commentRss><description>&lt;p&gt;Thanks for explaining.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t use rich text for this. Use structured XML. XHTML (aka rich text) is not structured and it will be very difficult for you to consistently parse it. &lt;/p&gt;
&lt;p&gt;If you are trying to generate an agenda (vs. parse it), same applies. It&amp;#39;s much easier to generate structured XML. &lt;/p&gt;
&lt;p&gt;Define your agenda schema and use that. Don&amp;#39;t use rich text. Rich text is not meant to be a substitute for XML schemas. It is meant for formatted text only.&lt;/p&gt;
&lt;p&gt;Sorry to rain on your parade, but you are trying to do something that is ridiculous.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;</description></item><item><title>Re: Carriage Return and Line Break</title><link>https://www.infopathdev.com:443/forums/thread/44106.aspx</link><pubDate>Fri, 10 Jul 2009 07:44:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44106</guid><dc:creator>lilmaster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44106</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Actually, I&amp;#39;m creating a schedule using InfoPath web forms. For an event, there will be start time, end time, agenda, participants, status, location, etc. And I&amp;#39;m attached calender (.ics), storing those events.&lt;/p&gt;&lt;p&gt;Then, rich text box is used for entering agenda. The first line of the agenda will be the summary in calendar file and the remaining line of agenda + participants will be description in calendar.&lt;/p&gt;&lt;p&gt;So, I&amp;#39;m trying to get the first line and remaining line of rich text box. In fact, I&amp;#39;m not trying to edit the rich text fields. I want to expose as calender file.&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Carriage Return and Line Break</title><link>https://www.infopathdev.com:443/forums/thread/44103.aspx</link><pubDate>Fri, 10 Jul 2009 07:34:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44103</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44103</wfw:commentRss><description>&lt;p&gt;Hi Lil Master,&lt;/p&gt;
&lt;p&gt;What are you actually trying to do? Writing code and trying to edit/parse rich text fields, is ABSOLUTELY NOT a best practice. You should not have to do that. We never do. But, please explain your scenario. Maybe you have a special case. &lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Carriage Return and Line Break</title><link>https://www.infopathdev.com:443/forums/thread/44017.aspx</link><pubDate>Thu, 09 Jul 2009 06:07:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44017</guid><dc:creator>lilmaster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=44017</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;In InfoPath, I&amp;#39;ve a rich text box. I want to get the first line and other lines separately. I used the following code:&lt;/p&gt;&lt;p&gt;if (niAgenda.Current.HasChildren)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator niDiv = niAgenda.Current.SelectChildren(XPathNodeType.Element);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int j = 0; j &amp;lt; niDiv.Count; j++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; niDiv.MoveNext();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (j == 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; vEvent.Summary = niDiv.Current.Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; vEvent.Description += niDiv.Current.Value + System.Environment.NewLine;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;It works fine while debugging in visual studio. But niDiv.Current.Value is different in SharePoint.&lt;/p&gt;&lt;p&gt;How can I achieve? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>