<?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: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52240.aspx</link><pubDate>Fri, 26 Feb 2010 08:02:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52240</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52240</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Since you’re up, I’ve got a different question.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;If you have some time, maybe you can point me in the right direction.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I need to create a button that converts the contents of textboxes on a form to a .csv file and saves the .csv file to a specified path.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Do you know how to do this???&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;THanks&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;-Lawson&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52239.aspx</link><pubDate>Fri, 26 Feb 2010 07:58:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52239</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52239</wfw:commentRss><description>&lt;p&gt;Yep, made the changes, and it works great. &lt;/p&gt;
&lt;p&gt;Thanks for all your help man!&lt;/p&gt;
&lt;p&gt;My bulldog says the same...&lt;/p&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52238.aspx</link><pubDate>Fri, 26 Feb 2010 07:50:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52238</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52238.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52238</wfw:commentRss><description>&lt;p&gt;You eliminated the end of this line&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font size="2"&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myDecoder = &lt;/font&gt;&lt;u&gt;&lt;b&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/u&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;and the beginning of this line&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;&lt;font size="2"&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;/b&gt;&lt;/u&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(node);&lt;/font&gt;&lt;font size="2"&gt;myDecoder.SaveAttachment(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;C:\Users\Lawson\Documents\Category A\A1-Acquisition Plan&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;that were present in your previous post.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52237.aspx</link><pubDate>Fri, 26 Feb 2010 07:39:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52237</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52237.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52237</wfw:commentRss><description>&lt;p&gt;I made the suggested changes.&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DOMNodeList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; n = thisXDocument.DOM.selectNodes(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group1/my:group2/my:field1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Get the text of the node.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; node &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; n)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (node.text.Length &amp;gt; 0)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myDecoder = InfoPathAttachmentDecoder(node.text);&lt;/p&gt;myDecoder.SaveAttachment(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;C:\Users\Lawson\Documents\Category A\A1-Acquisition Plan&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;But I get the following error:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;The name &amp;#39;InfoPathAttachmentDecoder&amp;#39; does not exist in the current context&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;68&amp;nbsp;86&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the late night help,&lt;/p&gt;
&lt;p&gt;-Lawson&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52236.aspx</link><pubDate>Fri, 26 Feb 2010 07:29:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52236</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52236</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Remove this line:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field1 = n.text;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Make the following two changes:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (node.Length &amp;gt; 0)&amp;nbsp; --&amp;gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (node.&lt;b&gt;text.&lt;/b&gt;Length &amp;gt; 0)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(node);&lt;/font&gt; --&amp;gt; &lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(node&lt;b&gt;.text&lt;/b&gt;);&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52235.aspx</link><pubDate>Fri, 26 Feb 2010 06:50:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52235</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52235</wfw:commentRss><description>&lt;p&gt;I made the suggested changes.&lt;/p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;//Get a reference to the attachment node.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DOMNodeList&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; n = thisXDocument.DOM.selectNodes(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group1/my:group2/my:field1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Get the text of the node.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field1 = n.text;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; node &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; n)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (node.Length &amp;gt; 0)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myDecoder = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(node);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;myDecoder.SaveAttachment(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;C:\Users\Lawson\Documents\Category A\A1-Acquisition Plan&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But I get the following errors:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;&amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeList&amp;#39; does not contain a definition for &amp;#39;text&amp;#39;&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;60&amp;nbsp;31&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;2&amp;nbsp;&amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode&amp;#39; does not contain a definition for &amp;#39;Length&amp;#39;&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;62&amp;nbsp;22&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;3&amp;nbsp;The best overloaded method match for &amp;#39;InfoPathAttachmentEncoding.InfoPathAttachmentDecoder.InfoPathAttachmentDecoder(string)&amp;#39; has some invalid arguments&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;64&amp;nbsp;82&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;4&amp;nbsp;Argument &amp;#39;1&amp;#39;: cannot convert from &amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode&amp;#39; to &amp;#39;string&amp;#39;&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;64&amp;nbsp;139&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your&amp;nbsp;help,&lt;/p&gt;
&lt;p&gt;-Lawson&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52234.aspx</link><pubDate>Fri, 26 Feb 2010 06:23:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52234</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52234</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The first line should have DOMNodeList, not IXMLDOMNode.&lt;/p&gt;&lt;p&gt;The foreach line should be something like:&lt;/p&gt;&lt;p&gt;foreach(IXMLDOMNode node in n)&lt;/p&gt;&lt;p&gt;and then you should replace &amp;quot;field1&amp;quot; with &amp;quot;node&amp;quot; in these lines:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (field1.Length &amp;gt; 0)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(field1);&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52233.aspx</link><pubDate>Fri, 26 Feb 2010 06:12:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52233</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52233</wfw:commentRss><description>&lt;p&gt;I tried you the foreach loop with the following code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; n = thisXDocument.DOM.selectNodes(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:group1/my:group2/my:field1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Get the text of the node.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; field1 = n.text;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; selectnodes &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; selectnodes)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (field1.Length &amp;gt; 0)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myDecoder = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; InfoPathAttachmentEncoding.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathAttachmentDecoder&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(field1);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;myDecoder.SaveAttachment(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;@&amp;quot;C:\Users\Lawson\Documents\Category A\A1-Acquisition Plan&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I get the following errors:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;Cannot implicitly convert type &amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust.DOMNodeList&amp;#39; to &amp;#39;Microsoft.Office.Interop.InfoPath.SemiTrust.IXMLDOMNode&amp;#39;. An explicit conversion exists (are you missing a cast?)&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;58&amp;nbsp;29&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;2&amp;nbsp;The name &amp;#39;selectnodes&amp;#39; does not exist in the current context&amp;nbsp;C:\Users\Lawson\Desktop\eFileroom\AttachmentEncoding\AttachmentEncoding\Code Files\FormCode.cs&amp;nbsp;61&amp;nbsp;49&amp;nbsp;AttachmentEncoding&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you tell me where I&amp;#39;m going wrong?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;-Lawson&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52230.aspx</link><pubDate>Fri, 26 Feb 2010 04:39:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52230</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52230.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52230</wfw:commentRss><description>&lt;p&gt;Can you give me an example that points me in the right direction on how to do this? &lt;/p&gt;</description></item><item><title>Re: Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52229.aspx</link><pubDate>Fri, 26 Feb 2010 04:10:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52229</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52229.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52229</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You should use the selectNodes method instead of selectSingleNode, and then iterate through the results (you can use a foreach loop), saving one file each time the loop iterates.&amp;nbsp; You will need to come up with a scheme for differentiating the file names.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/52215.aspx</link><pubDate>Thu, 25 Feb 2010 19:40:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52215</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=52215</wfw:commentRss><description>&lt;p style="LINE-HEIGHT:200%;MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have an IP form with an attachment control within a repeating section and a save button outside of the repeating section. When an attachment is added, the save button can be use to save the attachment to a predefined path. However, when the repeating section is used, the save button only saves the first attachment and none of the attachments that have been created with the repeating section.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="LINE-HEIGHT:200%;MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Is there any way to save the other attachments that have been created with the repeating section?&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have added my form to this post for reference.&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;-Lawson&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>