<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can an xsn form be pre-populated programmatically using qRules?</title><link>https://www.infopathdev.com:443/forums/thread/88563.aspx</link><pubDate>Mon, 01 Apr 2013 23:17:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88563</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88563</wfw:commentRss><description>&lt;p&gt;UPDATE: I found this article but the demo is written in Visual Studio 2012 and&amp;nbsp;later than 2007 version of InfoPath - neither of which I can open.&amp;nbsp; Maybe it will help someone..&amp;nbsp; I&amp;#39;m still interested in help with code examples using Visual Studio 2008 and InfoPath 2007.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.codeproject.com/Articles/570032/Dynamically-Create-Populate-and-Submit-an-InfoPath"&gt;http://www.codeproject.com/Articles/570032/Dynamically-Create-Populate-and-Submit-an-InfoPath&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Can an xsn form be pre-populated programmatically using qRules?</title><link>https://www.infopathdev.com:443/forums/thread/88559.aspx</link><pubDate>Mon, 01 Apr 2013 22:29:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88559</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=88559</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;I am using IP 2007 and SharePoint 2007. In this order I&amp;#39;d like to &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Create a new form programmatically&amp;nbsp;and pre-populate some fields, &lt;/li&gt;&lt;li&gt;Add form to SharePoint form library &amp;amp; &lt;/li&gt;&lt;li&gt;send email with a link/URL to this specific form.&lt;/li&gt;&lt;li&gt;the form contains DBXL which I am using to retreive data and submit data to a&amp;nbsp;database&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I think I can handle step 2, 3 &amp;amp; 4 but I&amp;#39;m not sure how to code step 1.&lt;/p&gt;&lt;p&gt;I have a program that pre-populates an &lt;strong&gt;xml&lt;/strong&gt; file and attaches it to the email.&amp;nbsp; I would rather pre-populate the &lt;strong&gt;xsn&lt;/strong&gt; and add to Sharepoint, then send link to the form in an email (rather than xml attachment).&amp;nbsp; &lt;/p&gt;&lt;p&gt;Would qRules help me achieve this with input pararmeters, if form is created programmatically?&lt;/p&gt;&lt;p&gt;Can someone direct me to code examples on how to populate fields on a xsn form template via code preferably C#?&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>