<?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: Save form Locally (Offline)</title><link>https://www.infopathdev.com:443/forums/thread/116013.aspx</link><pubDate>Tue, 11 Apr 2017 14:27:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116013</guid><dc:creator>dcmk07</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116013.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116013</wfw:commentRss><description>That is brilliant and so very generous!

Many thanks for your help with this!</description></item><item><title>Re: Save form Locally (Offline)</title><link>https://www.infopathdev.com:443/forums/thread/116000.aspx</link><pubDate>Mon, 10 Apr 2017 13:39:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116000</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116000.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116000</wfw:commentRss><description>Oh you bet! I&amp;#39;ve attached a zip folder with the signing cert &amp;amp; instructions. :)</description></item><item><title>Re: Save form Locally (Offline)</title><link>https://www.infopathdev.com:443/forums/thread/115998.aspx</link><pubDate>Mon, 10 Apr 2017 07:48:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115998</guid><dc:creator>dcmk07</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115998</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Hilary Stoupa:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;You&amp;#39;ll need to make the form full trust and sign it with a code signing cert (I have one I use that doesn&amp;#39;t expire till 2036 &amp;amp; I am happy to share it with you). You can use a field value or something to make the name dynamic, or just maybe use a date time string? Like:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;string filename = DateTime.Now.ToString(&amp;quot;yyyyMMDDHHmm&amp;quot;);&lt;br /&gt;this.SaveAs(string.Format(&amp;quot;c:\\forms\\{0}.xml&amp;quot;, filename));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;

Hi Hilary,

I am in exactly the same situation as srg88,  was just wondering whether it would be possible to take advantage of your extremely generous offer?  

Dale</description></item><item><title>Re: Save form Locally (Offline)</title><link>https://www.infopathdev.com:443/forums/thread/115874.aspx</link><pubDate>Tue, 21 Mar 2017 14:59:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115874</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115874</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You&amp;#39;ll need to make the form full trust and sign it with a code signing cert (I have one I use that doesn&amp;#39;t expire till 2036 &amp;amp; I am happy to share it with you). You can use a field value or something to make the name dynamic, or just maybe use a date time string? Like:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;string filename = DateTime.Now.ToString(&amp;quot;yyyyMMDDHHmm&amp;quot;);&lt;br /&gt;this.SaveAs(string.Format(&amp;quot;c:\\forms\\{0}.xml&amp;quot;, filename));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Save form Locally (Offline)</title><link>https://www.infopathdev.com:443/forums/thread/115860.aspx</link><pubDate>Mon, 20 Mar 2017 15:21:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:115860</guid><dc:creator>srg88</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/115860.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=115860</wfw:commentRss><description>I need the ability to save filled out forms locally to people&amp;#39;s laptops/tablets while out in the field (offline), then submit the forms when they are back in the office (attached to the network).

In my InfoPath 2013 I created the form and added a &amp;quot;Save&amp;quot; button to the form.  I added the following code to that Save button:

_____________________________________
if(this.New)
{
   this.SaveAs(&amp;quot;c:\\forms\\form1.xml&amp;quot;);
}
else
{
   this.Save();
}
_____________________________________

This code works... and creates a file called &amp;quot;form1.xml&amp;quot; when the Save button is clicked.  The problem I&amp;#39;m having is how do I save the form with a unique filename each time so that users are not over-writing the same filename over and over?  

The second problem (which I haven&amp;#39;t figured out yet) is that in preview mode in Infopath, I can click on the save button and it creates the form file with no problem or errors.  When I fill out the form using InfoPath filler and click on the Save button I created, it gives me a bunch of security errors, and won&amp;#39;t create the file.

Any help or suggestions would be greatly appreciated.</description></item></channel></rss>