<?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: Form submiting using c# code.</title><link>https://www.infopathdev.com:443/forums/thread/9998.aspx</link><pubDate>Wed, 26 Jul 2006 14:05:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9998</guid><dc:creator>shekar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9998</wfw:commentRss><description>Hi&lt;br /&gt;Create a data connection with name as "SharepointSubmit" and you specify the filename there only at the time of connection and set&lt;br /&gt;string sSharePointFolder = "http://sharepoint-srv.lgcnsglobal.com/sites/IQA/Quality%20Auditing%20Forms";&lt;br /&gt;and rest of the code is same as you wrote.</description></item><item><title>Re: Form submiting using c# code.</title><link>https://www.infopathdev.com:443/forums/thread/9997.aspx</link><pubDate>Mon, 26 Jun 2006 11:50:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9997</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9997</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;You need to pass SharePoint file name to your code.To pass Share point file name,add this line to your code 'osharePoint.FileName= fileName;'.</description></item><item><title>Form submiting using c# code.</title><link>https://www.infopathdev.com:443/forums/thread/5687.aspx</link><pubDate>Mon, 26 Jun 2006 05:59:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5687</guid><dc:creator>krishna.prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5687.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5687</wfw:commentRss><description>Hi,&lt;br /&gt;Please help me out...&lt;br /&gt;I have to submit InfoPath form to Sharepoint form library by using the c# code. &lt;br /&gt;I written the code in button click event.This is my code...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="green"&gt;string sSharePointFolder = "http://sharepoint-srv.lgcnsglobal.com/sites/IQA/Quality%20Auditing%20Forms/form.xml";&lt;br /&gt;			DAVAdapter oSharePoint = (DAVAdapter)thisXDocument.DataAdapters["SharepointSubmit"];&lt;br /&gt;			oSharePoint.FolderURL = sSharePointFolder;&lt;br /&gt;			oSharePoint.Submit();&lt;/font id="green"&gt;&lt;br /&gt;&lt;br /&gt;but when submiting the form i am getting this error.&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;An item with the following index does not exist in the collection: SharepointSubmit&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust.DataAdapters.get_Item(Object varIndex)&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust.DataAdaptersCollectionWrapper.get_Item(Object varIndex)&lt;br /&gt;   at Quality.Quality.btnSubmit_OnClick(DocActionEvent e) in c:\iqa\quality\formcode.cs:line 86&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/font id="red"&gt;&lt;br /&gt;&lt;br /&gt;Please help to solve this. I am new to use this InfoPath and SharePoint.&lt;br /&gt;&lt;br /&gt;Thanks in advance.</description></item></channel></rss>