<?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: C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45402.aspx</link><pubDate>Tue, 04 Aug 2009 16:02:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45402</guid><dc:creator>krazykarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45402.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45402</wfw:commentRss><description>&lt;p&gt;Thanks, got it to work.&lt;/p&gt;
&lt;p&gt;I used the second link, as it actually had an explanation to go with the code fragment it gives you. &lt;/p&gt;</description></item><item><title>Re: C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45401.aspx</link><pubDate>Tue, 04 Aug 2009 15:48:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45401</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45401</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I suggest you read these first:&lt;/p&gt;&lt;blockquote&gt;http://www.bizsupportonline.net/infopath2007/infopath-2007-frequently-asked-questions-faq.htm#how-to-retrieve-field-value-from-code&lt;br /&gt;http://www.bizsupportonline.net/infopath2007/retrieve-value-infopath-form-field-code.htm &lt;br /&gt;&lt;/blockquote&gt;</description></item><item><title>Re: C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45398.aspx</link><pubDate>Tue, 04 Aug 2009 15:35:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45398</guid><dc:creator>krazykarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45398</wfw:commentRss><description>&lt;p&gt;That&amp;#39;s the problem, I don&amp;#39;t know what code to use.&lt;/p&gt;
&lt;p&gt;The field is called &amp;quot;field1&amp;quot; (because I&amp;#39;m original) and belongs to a group called Form_Info. My latest attempt was&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;this.&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;SaveAs(&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;.Concat(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;http://document_library/FILE - &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, my:Form_Info/my:field1));&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Note: this.SaveAs... is all 1 line, don&amp;#39;t know why it is splitting it up here.&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45397.aspx</link><pubDate>Tue, 04 Aug 2009 15:25:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45397</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45397</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Could we see the code you&amp;#39;re using to get the field&amp;#39;s value?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>C# Using a field name as part of file name in this.SaveAs()</title><link>https://www.infopathdev.com:443/forums/thread/45392.aspx</link><pubDate>Tue, 04 Aug 2009 14:58:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45392</guid><dc:creator>krazykarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45392</wfw:commentRss><description>&lt;p&gt;I am trying to save a file using this.SaveAs(), but cannot figure out how to include a field name in the title. &lt;/p&gt;
&lt;p&gt;The field is called &amp;#39;field1&amp;#39; and is in a group called &amp;#39;form_info&amp;quot;. I am trying to save the form as &amp;quot;File - XX&amp;quot;, where XX = field1. How can I use this field value in the file name?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance.&lt;/p&gt;</description></item><item><title>Re: C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45390.aspx</link><pubDate>Tue, 04 Aug 2009 14:27:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45390</guid><dc:creator>krazykarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45390</wfw:commentRss><description>To make things a little simpler, I changed the field type to a string, but still cannot figure out how to use this value as part of the file name when saving the file.</description></item><item><title>C# Saving form using field values</title><link>https://www.infopathdev.com:443/forums/thread/45296.aspx</link><pubDate>Fri, 31 Jul 2009 20:43:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45296</guid><dc:creator>krazykarter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45296</wfw:commentRss><description>&lt;p&gt;Another simple question. I am trying to save my form using this.SaveAs();, and as the file name I am combining a path with a field value. To complicate things more, that field value is an integer. &lt;/p&gt;
&lt;p&gt;this.SaveAs(&amp;quot;SharepointWebsite/&amp;quot; + integer_field_value)&lt;/p&gt;
&lt;p&gt;I tried using .ToString(); but that did not work either. How can I add the value from the field to the name of the file?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks in advance.&lt;/p&gt;</description></item></channel></rss>