<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Destinations for submitting/saving</title><link>https://www.infopathdev.com:443/forums/thread/52801.aspx</link><pubDate>Wed, 17 Mar 2010 01:46:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52801</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52801</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Value shouldn&amp;#39;t have parentheses after it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;In order to access the local disk from code, as in this case, the form will need to be full trust.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Destinations for submitting/saving</title><link>https://www.infopathdev.com:443/forums/thread/52796.aspx</link><pubDate>Tue, 16 Mar 2010 20:22:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52796</guid><dc:creator>TobyR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52796.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52796</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the advice, but I&amp;#39;m having a couple of problems which I hope are just because I&amp;#39;m not a C# developer and are therefore easy to fix!&amp;nbsp; First, I get an error that in the expression &lt;font size="2"&gt;&lt;p&gt;&lt;font size="2"&gt;xnDoc.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field_name&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value(); &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;namely &amp;quot;&amp;#39;Value&amp;#39; is a &amp;#39;property&amp;#39; not a &amp;#39;method&amp;#39;&amp;quot; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;Second, if I try a test save with&amp;nbsp; ...&lt;/p&gt;&lt;p&gt;&lt;font&gt;&lt;font size="2"&gt;this.SaveAs(@&amp;quot;C:\test&amp;quot;);&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Then I get a security event:&lt;/p&gt;&lt;p&gt;System.Security.SecurityException&lt;br /&gt;Request for the permission of type &amp;#39;System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp;amp; stackMark, Boolean isPermSet)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessPermission.Demand()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlFormHost.CheckFileWritePermission(String fileLocation)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.XmlFormHost.SaveAs(String fileUrl)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.XmlFormHostItem.SaveAs(String fileUrl)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at DailyRoutineForm2.FormCode.CTRL55_5_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent) &lt;/p&gt;&lt;p&gt;&amp;nbsp;I guess there a re some persmission that need to be changed - any suggestions?&amp;nbsp; Thanks in advance&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Destinations for submitting/saving</title><link>https://www.infopathdev.com:443/forums/thread/52694.aspx</link><pubDate>Mon, 15 Mar 2010 09:18:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52694</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52694.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52694</wfw:commentRss><description>&lt;p&gt;you can use a little bit of code behind to do the trick. create a field say field_name on your form. on the load of your form set its value to whatever your want. &lt;/p&gt;
&lt;p&gt;drop a button on your form &lt;/p&gt;
&lt;p&gt;and &lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xnDoc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;xnDoc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;string Doc_name = &lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;xnDoc.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field_name&amp;quot;&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;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value();&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;this.save(&amp;quot;your save location&amp;quot; + Doc_name);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Destinations for submitting/saving</title><link>https://www.infopathdev.com:443/forums/thread/52687.aspx</link><pubDate>Sun, 14 Mar 2010 20:17:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52687</guid><dc:creator>TobyR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=52687</wfw:commentRss><description>&lt;p&gt;I&amp;#39;d like to use Infopath to create a daily checklist.&amp;nbsp; Creating the form has been very simple, but I&amp;#39;d like some help and advice about saving/submitting the data.&amp;nbsp; I can see that Infopath is really designed for putting data into a central data store, especially Sharepoint, but that is not an option for me.&amp;nbsp; Basically, I just need my colleagues to complete the forms and save them in a specific folder for later reference and/or archiving.&amp;nbsp; How can one set a form to be saved to a sepcific folder, and with a specific calculated name (which I have in mind will be something like &amp;quot;checklist-&amp;lt;yy&amp;gt;-&amp;lt;mm&amp;gt;-&amp;lt;dd&amp;gt;&amp;quot;?&amp;nbsp; I say &amp;quot;save&amp;quot; instead of &amp;quot;submit&amp;quot; because I get the impression that one can only submit to specialist data stores eg Sharepoint, databases. &amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>