<?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>HTML from Infopath form</title><link>https://www.infopathdev.com:443/forums/thread/97205.aspx</link><pubDate>Tue, 29 Apr 2014 14:31:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:97205</guid><dc:creator>WPiersol</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/97205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=97205</wfw:commentRss><description>&lt;p class="MsoNormal"&gt;I have an Infopath 2010 form that has a button that creates
a HTML file of the form when a button is clicked.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;It used c# code that can be found at (&lt;a href="http://theressomethingaboutsharepoint.blogspot.com/2013/01/infopath-managed-code-c-to-convert-view.html#comment-form"&gt;http://theressomethingaboutsharepoint.blogspot.com/2013/01/infopath-managed-code-c-to-convert-view.html#comment-form&lt;/a&gt;).&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;It works great with one exception..&amp;nbsp; The form has a multiline textbox.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;If I select the value of the textbox using
c#, it has line breaks (\n) in it.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;
&lt;/span&gt;However, if you copy the innerXML of the XPathNavigator and paste it
into a XML file, the field does not have the line breaks.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Therefore in my html file, the textbox does
not have line breaks.&lt;/p&gt;&lt;p&gt;

&lt;span style="font-size:11.0pt;line-height:115%;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;Has anyone ever ran across this?&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>