<?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: Custom Save</title><link>https://www.infopathdev.com:443/forums/thread/63542.aspx</link><pubDate>Tue, 25 Jan 2011 20:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63542</guid><dc:creator>cooldude</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63542</wfw:commentRss><description>Iam able to solve the issue using code....I used the following code
 

XPathNavigator xnMyForm = this.CreateNavigator();
SPList currentList = currentWeb.Lists[lstName];

 using (SPWeb currentWeb = SPContext.Current.Site.OpenWeb())
            {
                  SPFile saveFile = null;
                  currentList.ParentWeb.AllowUnsafeUpdates = true;
                  saveFile = currentList.RootFolder.Files.Add(strFileName, Encoding.Default.GetBytes(xnMyForm.OuterXml));
                  currentList.ParentWeb.AllowUnsafeUpdates = false;
                  currentWeb.Dispose();
              }

append &amp;quot;.xml&amp;quot; to strFileName so that form library recognizes the format to display it as an infopath form in the list items</description></item><item><title>Re: Custom Save</title><link>https://www.infopathdev.com:443/forums/thread/63500.aspx</link><pubDate>Tue, 25 Jan 2011 02:26:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63500</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63500</wfw:commentRss><description>&lt;p&gt;Hi CoolDude,&lt;/p&gt;
&lt;p&gt;qRules also supports clearing the error board so that you can do saves even though your form has validation errors. No code required either! :)&lt;/p&gt;</description></item><item><title>Re: Custom Save</title><link>https://www.infopathdev.com:443/forums/thread/63475.aspx</link><pubDate>Mon, 24 Jan 2011 17:20:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63475</guid><dc:creator>cooldude</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63475.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63475</wfw:commentRss><description>what do i need to give for remote file URL and File path......</description></item><item><title>Re: Custom Save</title><link>https://www.infopathdev.com:443/forums/thread/63441.aspx</link><pubDate>Sat, 22 Jan 2011 03:25:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63441</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63441</wfw:commentRss><description>Hi you can use webclient to upload your form to SHarepoint:
&lt;br /&gt;
WebClient webclient = new WebClient();
webclient.Credentials = System.Net.CredentialCache.DefaultCredentials;
webclient.UploadFile(remoteFileURL, &amp;quot;PUT&amp;quot;, FilePath);
webclient.Dispose();</description></item><item><title>Custom Save</title><link>https://www.infopathdev.com:443/forums/thread/63436.aspx</link><pubDate>Fri, 21 Jan 2011 22:22:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63436</guid><dc:creator>cooldude</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63436.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63436</wfw:commentRss><description>Is it possible to have a &amp;quot;Save&amp;quot; button in the form and save the document exactly like how an Infopath save does i.e without checking the error validations etc etc...through code..if so can you share some examples

Thanks,
RK</description></item></channel></rss>