<?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: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98086.aspx</link><pubDate>Mon, 23 Jun 2014 13:36:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98086</guid><dc:creator>AmsterdamSchool</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98086</wfw:commentRss><description>UPDATE - much easier than expected I did get the permission. However, the next obstacle was just around the corner. The code builds fine, but when I publish it, I get a message that states that the sanbox solution can not be activated because of an error while validating Microsoft.ApplicationServer.Caching.Client. It also states that the solution references the illegal System.Threading.Timer which may not be used in a site collection.&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Why might that be? My code does not use or reference any of the mentioned assemblies etc. It is completely based on this sample code: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f9cd50d5-0782-49c0-b71a-e242ff4d5758/how-do-i-retain-formatting-when-setting-fields-value-in-infopath-2010-to-be-formatted-text-from-a?forum=sharepointcustomizationprevious &lt;/p&gt;&lt;p&gt;Does someone understand what could cause these errors if I don&amp;#39;t use these assemblies in my code and this is the only code behind used in the form?&lt;br /&gt;&lt;br /&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98083.aspx</link><pubDate>Mon, 23 Jun 2014 12:30:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98083</guid><dc:creator>AmsterdamSchool</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98083.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98083</wfw:commentRss><description>&lt;p&gt;It is a browser form. Should have mentioned that. Filler mode is not an option.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll look into qRules, but I already saw that this also requires sandboxed forms. Curretnly the code is less of a problem than the permission, but worth looking in to.&lt;br /&gt;&lt;br /&gt;Than you.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98076.aspx</link><pubDate>Mon, 23 Jun 2014 05:31:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98076</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98076.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98076</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;If you are ok with having users access the form in Filler mode (in the InfoPath client), then you shouldn&amp;#39;t need any elevated permissions to publish the form, just regular Contributor permissions. Is this a browser form?&lt;/p&gt;&lt;p&gt;Just so you know, qRules provides a command called CopyRichText that makes it really easy to copy rich text from place to place. qRules also provides all sorts of other helpfuly functionality and takes all the hassle out of writing your own code. I recommend checking it out as it can save you lots of time and effort.&lt;/p&gt;</description></item><item><title>Re: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98059.aspx</link><pubDate>Fri, 20 Jun 2014 17:45:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98059</guid><dc:creator>AmsterdamSchool</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98059</wfw:commentRss><description>A shame that there is no codeless solution to do something that seems as straightforward as retrieving formatted text to go into a rich text box. Oh well...

Thanks for the explanation Hilary.</description></item><item><title>Re: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98057.aspx</link><pubDate>Fri, 20 Jun 2014 17:34:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98057</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98057</wfw:commentRss><description>&lt;p&gt;Unfortunately a browser form with code either needs to go in the Sandbox (which means you have to be a site collection admin and publish directly to the library) or be admin approved (which means it is uploaded to central admin. I don&amp;#39;t know of a way to do what you want to do without code, however.&lt;/p&gt;</description></item><item><title>Re: Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98055.aspx</link><pubDate>Fri, 20 Jun 2014 17:31:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98055</guid><dc:creator>AmsterdamSchool</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98055</wfw:commentRss><description>UPDATE - I am now able to add the code, but it turns out I need admin rights to the site collection in order to upload my form. Not sure if I&amp;#39;ll be able to get those and how fast. Is there an non-code solution? Not that I mind doing it in code, but I get stuck on permissions... Thank you</description></item><item><title>Fill rich text field with formatted data from list - how can this be done?</title><link>https://www.infopathdev.com:443/forums/thread/98054.aspx</link><pubDate>Fri, 20 Jun 2014 16:52:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98054</guid><dc:creator>AmsterdamSchool</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98054</wfw:commentRss><description>I&amp;#39;m trying to pull formatted text from a SharePoint list (Office 365) and display it in a rich text box on my form, with it&amp;#39;s original formatting. So far all formatting keeps getting lost in the process. I understand it can be done with code behind. I tried this, but because I don&amp;#39;t have SharePoint installed locally this is proving to be surprisingly difficult. I managed to get the microsoft.sharepoint.dll from somewhere, but I still cant run the code. I get error messages about missing namespaces.

Cab someone show me an alternative route, or explain how I can use code behind without SharePoint on my machine?

I use SharePoint Online 2013, InfoPath 2013 and Visual Studio 2012.

I would be very grateful. Thank you.


This page explains how it can be done with code behind: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f9cd50d5-0782-49c0-b71a-e242ff4d5758/how-do-i-retain-formatting-when-setting-fields-value-in-infopath-2010-to-be-formatted-text-from-a?forum=sharepointcustomizationprevious</description></item></channel></rss>