<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx</link><description>I have an InfoPath 2007 Form where I have a Text Box, a File Attachment field and a Button. I changed the property of the button to make it a Submit button. My target is to post the Form’s instance into a Form Library. And then put the file which I have</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#4733136</link><pubDate>Tue, 04 Sep 2007 05:50:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4733136</guid><dc:creator>Christine</dc:creator><description>&lt;p&gt;Hi Pranab. Is this the only way to add the attachment file from Infopath 2007 to MOSS 2007? Any other alternatives? By the way, are we able to detach the attachment file from InfoPath 2007 and then add it into the MOSS 2007 library document?&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#5226005</link><pubDate>Mon, 01 Oct 2007 21:10:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5226005</guid><dc:creator>tom</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;This is a great! Now, I can use your code to detach a file to SharePoint. &amp;nbsp;How would you handle zero to many attachements to be detached (Looping)?&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#5227709</link><pubDate>Mon, 01 Oct 2007 23:48:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5227709</guid><dc:creator>pranab</dc:creator><description>&lt;p&gt;In this part of Code (XPathNavigator opnXN = docXN.SelectSingleNode(&amp;quot;/my:myFields/my:fileup&amp;quot;, this.NamespaceManager);) you are paasing the xpath of the file attachment field as a parameter of string type.&lt;/p&gt;
&lt;p&gt;Now if you have 5 file attachment fields (fileup0 - fileup4) then use something like:&lt;/p&gt;
&lt;p&gt;for (int i = 0; i &amp;lt; 5; i++)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; string s = &amp;quot;/my:myFields/my:fileup&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; s += i.ToString();&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#5512809</link><pubDate>Thu, 18 Oct 2007 22:58:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5512809</guid><dc:creator>tom</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion.&lt;/p&gt;
&lt;p&gt;But I was thinking along the line of using repeating section for the file attachment.&lt;/p&gt;
&lt;p&gt;I’ll not know how many files have been attached in advance. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;My code will loop through to figure out zero to many files and detach it to differnt SharePoint sites depend on the content type of file.&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#5625502</link><pubDate>Tue, 23 Oct 2007 18:08:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5625502</guid><dc:creator>tom</dc:creator><description>&lt;p&gt;Zero to many attachements to detach:&lt;/p&gt;
&lt;p&gt;Here is looping code if anyone interested.....&lt;/p&gt;
&lt;p&gt;XPathNavigator docXN = this.CreateNavigator();&lt;/p&gt;
&lt;p&gt;XPathNavigator opnXN = docXN.SelectSingleNode(&amp;quot;/my:myFields/my:file&amp;quot;, this.NamespaceManager);&lt;/p&gt;
&lt;p&gt;XPathNodeIterator xi = opnXN.Select(&amp;quot;/my:myFields/my:file&amp;quot;, NamespaceManager);&lt;/p&gt;
&lt;p&gt;while (xi.MoveNext())&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;string s = xi.Current.Value; &lt;/p&gt;
&lt;p&gt; &amp;nbsp;byte[] attachmentNodeBytes = Convert.FromBase64String(s);&lt;/p&gt;
&lt;p&gt;..........&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#5671520</link><pubDate>Thu, 25 Oct 2007 18:53:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5671520</guid><dc:creator>tom</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;Do you know how to delete attachement file with code?&lt;/p&gt;
&lt;p&gt;Once I copied attachements to Sharepoint, I want to delete from the InfoPath form.&lt;/p&gt;
&lt;p&gt;I've been trying with ExecuteAction(xFileAttachementRemove, string)method, but couldn't make it work. &lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;</description></item><item><title>How to get Library Infopath form data to EditForm</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#6126952</link><pubDate>Mon, 12 Nov 2007 07:47:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6126952</guid><dc:creator>Priyanga Darshana</dc:creator><description>&lt;p&gt;Showing doument data in TaskForms &lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This was an excellent demo. &lt;/p&gt;
&lt;p&gt;I have a question. Following is the scenario. &lt;/p&gt;
&lt;p&gt;I have developed a statemachine workflow for our company expense approval and it had being associated with a infopath form Library. Now users will going to upload Infopath forms (tempate is already set up for libaray). So, I want to extract some details from those uploading files to my Infopath Task forms to display it. (e.g. User1 enter the expense figure in infopath file and upload to form libaray assigning it to user2. When user2 view task he should be able to see the those expense figures in his Infopath Task form as well) &lt;/p&gt;
&lt;p&gt;How to do it? &lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#7844267</link><pubDate>Fri, 22 Feb 2008 06:03:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7844267</guid><dc:creator>Balaji Santosh</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This is gr8. I had a problem with attachments in infopath 2007 when i use in sharepoint 2007. when i upload the document in any format, its working well. When i download the same document, it is being converted to .aspx format(if .net is installed), otherwise .zip format. can you help me in this regard.&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8573673</link><pubDate>Wed, 04 Jun 2008 20:40:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8573673</guid><dc:creator>Pepe</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I still have the base64 error when I am publishing the InfoPath form to my SharePoint Server. I made it full trust and everything but still doesnt work.&lt;/p&gt;
&lt;p&gt;I would appreaciate any help!&lt;/p&gt;
&lt;p&gt;Pepe&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8648524</link><pubDate>Tue, 24 Jun 2008 22:14:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8648524</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;How can I store the file with its name based on a form FIELD's value. I have a text Field called &amp;quot;FinalFile&amp;quot;, so the file name should be value of &amp;quot;FinalFile&amp;quot; field, not the actual name of the attachment.&lt;/p&gt;
&lt;p&gt;ex:&lt;/p&gt;
&lt;p&gt;Actual name of attachment... good.doc&lt;/p&gt;
&lt;p&gt;Value in FinalFile..... bad.doc&lt;/p&gt;
&lt;p&gt;So it should be stored as bad.doc to the doc library.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8743387</link><pubDate>Thu, 17 Jul 2008 14:13:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8743387</guid><dc:creator>Ipsita</dc:creator><description>&lt;p&gt;Hi Pranab..whenever i attach a file in infopath and save the form in a form library in share point and then see the xml of that form...i get the attached document as binaries...can you suggest some way to convert the binaries back to its original format.&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8832073</link><pubDate>Mon, 04 Aug 2008 23:26:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8832073</guid><dc:creator>Yash</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;Nice article.&lt;/p&gt;
&lt;p&gt;But I have a problem while retrieving the file attachment. I am submitting the file attachment as byte[] in SQL Server 2005 table. How can I assign the same byte[] in that file attachment field ?&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8895226</link><pubDate>Tue, 26 Aug 2008 01:04:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8895226</guid><dc:creator>Suzanne</dc:creator><description>&lt;p&gt;This is great! Thanks for posting.&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8936322</link><pubDate>Tue, 09 Sep 2008 13:27:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8936322</guid><dc:creator>Robert Chyra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have problem with browser-enabled InfoPath form and InfoPath Forms Services - every time I loaded attachments do my form it is refresh to the client's browser (if I attach 6 MB file do forms, I see it is loading to server and finally data is loading back to the client's browser)&lt;/p&gt;
&lt;p&gt;And the worst: if I click button SAVE (standard button generated with InfoPath Forms Services) and write the name of my form and click OK, everything happens again (data is loading back to the client's browser)&lt;/p&gt;
&lt;p&gt;What should I do to prevent loading back data from server to client's browser??&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Robert&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8943725</link><pubDate>Thu, 11 Sep 2008 10:33:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8943725</guid><dc:creator>Rahul</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;Actually, Iam getting error &amp;quot;URL could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.&amp;quot;&lt;/p&gt;
&lt;p&gt;Any Idea?&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8965250</link><pubDate>Thu, 25 Sep 2008 19:45:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8965250</guid><dc:creator>Hannah</dc:creator><description>&lt;p&gt;Hi Pranab&lt;/p&gt;
&lt;p&gt;I am getting the error &amp;quot;The Web application at &lt;a rel="nofollow" target="_new" href="http://mossdev01/Record%20Update%20Attachments/usability.doc"&gt;http://mossdev01/Record%20Update%20Attachments/usability.doc&lt;/a&gt; could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.&amp;quot;.&lt;/p&gt;
&lt;p&gt;My SiteURL is set as above to:&lt;/p&gt;
&lt;p&gt;string SiteURL = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://mossdev01/Record%20Update%20Attachments/&amp;quot;"&gt;http://mossdev01/Record%20Update%20Attachments/&amp;quot;&lt;/a&gt; + fileName; &lt;/p&gt;
&lt;p&gt;The form is successfully submitted to the form library but the attachment fails on the line:&lt;/p&gt;
&lt;p&gt;SPWeb site = new SPSite(SiteURL).OpenWeb();&lt;/p&gt;
&lt;p&gt;Have you come accross this before?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Hannah&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#8966338</link><pubDate>Fri, 26 Sep 2008 14:20:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8966338</guid><dc:creator>Hannah</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have managed to get this working now - i was developing on one server and running it on another - have now installed InfoPath on the same server as the form library and it it running ok.&lt;/p&gt;
&lt;p&gt;Have aded in Tom's update looping through to add multiple attachments.&lt;/p&gt;
&lt;p&gt;One question - has anyone added in functionality to enable exisiting documents in the doc library to be overwritten? Not sure if this should be a code thing or a setting in the form or even the doc library??&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Hannah&lt;/p&gt;</description></item><item><title>Reassign  task  in workflow if an error occurs</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9012793</link><pubDate>Thu, 23 Oct 2008 13:33:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012793</guid><dc:creator>Nitin</dc:creator><description>&lt;p&gt;This is a typical workflow process where review is happening between two persons (Person &amp;quot;A&amp;quot; and Person &amp;quot;B&amp;quot;).A Task has assigned to Person &amp;quot;A&amp;quot; for Review and after this Review, there is a set of code to be executed. Hence forth Task for Person &amp;quot;B&amp;quot; would be created. In this Scenario, when error occurs (while executing the set of code), how can I Reassign the Task to the Same Person.&lt;/p&gt;
&lt;p&gt;Scenario 1:&lt;/p&gt;
&lt;p&gt;Now in a typical scenario, this happened that, when the set of code (Lets say, adding the user details to a Database and database connection fails) is executed and some error had occurred. Prior to that, the Workflow completed the Task for Person &amp;quot;A&amp;quot; and created the Task for Person &amp;quot;B&amp;quot;.&lt;/p&gt;
&lt;p&gt;In other words, when the Person A’s Task is Erroneous, we should Reassign the Task to the same person rather creating Task for Person &amp;quot;B&amp;quot;.&lt;/p&gt;
&lt;p&gt;But the WWF Framework for Sequential Workflow is designed in such a way that it is forward only and the desired scenario is to sustain the status of Task till next level unless it is error free. I am really looking for some Activities using that I can reassign the Task to the same person when there is Review Error.&lt;/p&gt;
&lt;p&gt;&amp;#160;Or&lt;/p&gt;
&lt;p&gt;Is there any typical activity to handle the flow of Custom workflow to previous level, case when error occurs?&lt;/p&gt;
&lt;p&gt;Also looking for suggestion on the Error Handling part for WWF.&lt;/p&gt;</description></item><item><title>Make people picker field(Activex Control) Mandatory in Infopath form</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9012794</link><pubDate>Thu, 23 Oct 2008 13:34:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9012794</guid><dc:creator>Nitin</dc:creator><description>&lt;p&gt;Infopath form contains a Contact Selector Activex Control referring to Manager Name. I need to make this field as mandatory. When it comes to default controls (Like TextBox, CheckBox, RadioButton etc.), using Data Validation I can make the field Mandatory,. But this Contact Selector control does not support Data Validation.&lt;/p&gt;
&lt;p&gt;The other way around I tried with VSTA coding. I set a value of contact Selector to one more textbox and used Data Validation to that Textbox. But this Scenario is working fine till the InfoPath form is Browser rendered. When I make the form rendered as browser, this code is not working.&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9269663</link><pubDate>Fri, 02 Jan 2009 23:36:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9269663</guid><dc:creator>ashishkanoongo</dc:creator><description>&lt;p&gt;Hello Pranab&lt;/p&gt;
&lt;p&gt;I am working in different sceherio. My infopath library is email enabled. I want to check whenever any email received for that form library. I want to delete attachment and add another xml file which I generated using an xslt file and transform. I just tested with itemadded event and update title field as below, but how do I delete attchment. I want to make sure it should delete only those attachment whenever item received thru email. Please advise&lt;/p&gt;
&lt;p&gt;public class EmailReceiver : SPItemEventReceiver &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public override void ItemAdded(SPItemEventProperties properties) &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//SPListItem item = null; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.DisableEventFiring(); &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties.ListItem[&amp;quot;Title&amp;quot;] = &amp;quot;Tested by AK Item&amp;quot;; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties.ListItem.Update(); &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.EnableEventFiring(); &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex) &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//item[&amp;quot;Title&amp;quot;] = ex.ToString(); &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EventLog.WriteEntry(&amp;quot;Error&amp;quot;, ex.ToString()); &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp;&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9293490</link><pubDate>Thu, 08 Jan 2009 07:21:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9293490</guid><dc:creator>helen</dc:creator><description>&lt;p&gt;Hi,The code shows me some error message&lt;/p&gt;
&lt;p&gt;System.IndexOutOfRangeException&lt;/p&gt;
&lt;p&gt;Index was outside the bounds of the array.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at InfoPathTest.FormCode.CTRL3_5_Clicked(Object sender, ClickedEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/p&gt;
&lt;p&gt;why its so please help me&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9301435</link><pubDate>Fri, 09 Jan 2009 09:40:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9301435</guid><dc:creator>Harit</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I executed the code i get the following error can u please say y that happens&lt;/p&gt;
&lt;p&gt;Invalid character in a Base-64 string.&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9470765</link><pubDate>Wed, 11 Mar 2009 20:08:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9470765</guid><dc:creator>Sunil</dc:creator><description>&lt;p&gt;I have an infopath form that is web enabled. I have a file attachment control on my form. Is there a limit on the file size that can be uploaded and if so, are there any workarounds ? I know that sharepoint 2007 itself has a 50MB default file size limit, but, that can be changed by going into CA. Anything similar in infopath ?&lt;/p&gt;
&lt;p&gt;thanks for your help.&lt;/p&gt;
&lt;p&gt;Sunil&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9701509</link><pubDate>Fri, 05 Jun 2009 19:00:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9701509</guid><dc:creator>Avijit Das</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;I would like to know what happens with the file attachment control after we detach the attachments to a document library. The options are:&lt;/p&gt;
&lt;p&gt;1. Keep it as it is. In this case, anyway the attachments are embedded in the Form's XML. So, the Form really does not become lightweight.&lt;/p&gt;
&lt;p&gt;2. Replace the attachment control with hyperlink (not sure if this is possible) and then bring back if I am trying to edit the Form.&lt;/p&gt;
&lt;p&gt;Looking ahead for your response.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Avi&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9813689</link><pubDate>Thu, 02 Jul 2009 13:21:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9813689</guid><dc:creator>Selva</dc:creator><description>&lt;p&gt;I had created the VSTA code what you are mentioned above but&lt;/p&gt;
&lt;p&gt;byte[] attachmentNodeBytes = Convert.FromBase64String(opnXN.ToString());&lt;/p&gt;
&lt;p&gt;Here i am getting error like object reference&lt;/p&gt;
&lt;p&gt; pls let me know&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;selva&lt;/p&gt;</description></item><item><title>re: How to Add the Attachment from an InfoPath 2007 Form to a SharePoint 2007 (MOSS/WSS) Document Library</title><link>http://blogs.msdn.com/pranab/archive/2007/07/02/how-to-add-the-attachment-from-an-infopath-2007-form-to-a-document-library.aspx#9899701</link><pubDate>Fri, 25 Sep 2009 23:53:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9899701</guid><dc:creator>uday patel</dc:creator><description>&lt;p&gt;Hi Pranab,&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;
&lt;p&gt;Its really urgent for us so any help greatly appreciated.&lt;/p&gt;
&lt;p&gt;Question is : How to delete the Infopath Form attachments Once its been copied over to another document library? Can you please provide me any source code as i have tried deleteself() and executeaction method but nothing seems tobe worked on my code.&lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;
&lt;p&gt;Uday Patel&lt;/p&gt;</description></item></channel></rss>