SharePoint - InfoPath Forms Services ForumTopics about InfoPath Forms Services capabilities in Office SharePoint Server.© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Nov 2009 07:22:02 Zd23dff71-b399-4c75-b75b-fcfa7dedbc7ehttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/738d78cb-78cd-4c16-92b4-b2f97153b2e9http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/738d78cb-78cd-4c16-92b4-b2f97153b2e9Pieterdvhttp://social.msdn.microsoft.com/Profile/en-US/?user=PieterdvUnapproved items in Form (document) librarySP2007: Used InfoPath to create a form to submit data to a form (document) library with Infopath updating various columns. Works fine. With 800 staff submitting data I need a View on the form library showing those entries that are:<br/>Blank or Rejected and not approved, and not in Progress.<br/>The closest I could come to a solution was to create a View where the Approval status (Group by) is blank, but that excludes Rejected Items. I could create an additional view to show those that were rejected but on approval status you cant create any 'Group by' apart from blank.<br/>Excluding getting a programmer to do this, how can non approved items be isolated and displayed seperatly? <em>If this forum is not appropiate for this question, please suggest an alternative.<br/></em>Thanks in advance.<br/><hr class="sig">PieterTue, 24 Nov 2009 14:01:06 Z2009-11-25T07:22:03Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/104f6847-28d1-4ea6-9379-fd8ccd6fad34http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/104f6847-28d1-4ea6-9379-fd8ccd6fad34Shalini Chttp://social.msdn.microsoft.com/Profile/en-US/?user=Shalini%20CExcel to database using infopath formsI want to give an option in my infopath form to upload an excel file. Infopath should read this excel and store it into a table in database. Is this possible?Wed, 25 Nov 2009 06:52:13 Z2009-11-25T07:18:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c145095f-a3aa-4f19-b184-b336a3bf28e7http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c145095f-a3aa-4f19-b184-b336a3bf28e7Setoseedhttp://social.msdn.microsoft.com/Profile/en-US/?user=SetoseedAny good book reference on how to program and call multiple InfoPath forms (with parameters) and use the SharePoint Forms Services for deploymentHello all,<br/>I am new to InfoPath and SharePoint, I need to use InfoPath to build multiple forms.  I will need to build form A and  pass parameters to form B in order to request data to be display on Form B.<br/><br/>After I build the forms in InfoPath,  the application will be deployed on a SharePoint with using the  Form Services.  Can somebody please let me know if there is any good book or reference that I may find all of my answers.  Thanks<br/><br/><br/>I built a form with InfoPath and able to get all data in one form only,  I would like to split the form and display the information in multiple window screens.<br/><br/>Tue, 24 Nov 2009 19:41:09 Z2009-11-25T06:37:44Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b16926ed-8c8d-4b91-8ebe-60c8da79fb95http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b16926ed-8c8d-4b91-8ebe-60c8da79fb95BlackJokerhttp://social.msdn.microsoft.com/Profile/en-US/?user=BlackJokerError posting to Sharepoint - The SOAP message cannot be parsed.I'm receiving an error message when attempting to open InfoPath 2007 from home. After everything is said and done, attempting to perform the Tools&gt;Form Options&gt;Compatibility and enabling the option &quot;Design a form template that can be opened in a browser or Infopath.&quot;<br/> <br/> <br/> After entering the site's URL address and clicking OK I end up getting an error that says<br/> <br/> &quot;The SOAP message cannot be parsed.&quot;<br/> <br/> I tried searching on Google without much luck, when I tried searching on the site I found this link <br/> <br/> http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/a25d00ac-f562-4bcd-b57c-4e5a34fabc89<br/> <br/> But no answer was given. Does anyone happen to know the cause as to why I am getting this error and unable to have the InfoPath form connect?<br/>Mon, 23 Nov 2009 07:55:38 Z2009-11-24T23:20:14Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/f92e776c-3452-4c25-bde4-ac9a44d2d29chttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/f92e776c-3452-4c25-bde4-ac9a44d2d29cBishoyJacobhttp://social.msdn.microsoft.com/Profile/en-US/?user=BishoyJacobCreate new blank form after submitting<span style="font-weight:bold">I have a form created with InfoPath, and viewed in XMLViewForm webpart,</span><br style="font-weight:bold"><span style="font-weight:bold">and in the form setting, i set that after submitting the form create another <span style="text-decoration:underline">new blank form</span>,</span><br style="font-weight:bold"><span style="font-weight:bold">the <span style="text-decoration:underline">form has code behind</span>, and i<span style="text-decoration:underline"> excute the submit from code</span>, <span style="text-decoration:underline">but after i submit the form is closed not createing another one.</span></span><br style="font-weight:bold;text-decoration:underline"><br style="font-weight:bold"><span style="font-weight:bold">do any one knows why is that, or what is missing???</span><br>Fri, 21 Mar 2008 18:07:07 Z2009-11-24T22:16:14Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/724fd41c-8817-45bf-85bf-80a86a37fdd7http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/724fd41c-8817-45bf-85bf-80a86a37fdd7HollieDhttp://social.msdn.microsoft.com/Profile/en-US/?user=HollieDURL IssueI have a borwser enabled Infopath form, a SharePoint list and a workflow. My workflow populates the list with the URL to the corresponding task so that I can reference the URL in a link on the form. The URL in the list is correct but for some reason when I use the data connection to the list to pull back the field with the URL, the field is populated with the URL twice, seperated by a comma. For instance, the URL in the list has &quot;http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx&quot;  but when populated in the hyperlink on the form it has http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx,http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx&quot;. Since it has it twice, the source URL is not working correctly and it returns to the original area, which is undesirable.<br/><br/>Has anyone else ever had this issue? Please help.<br/><br/>Thanks!Tue, 24 Nov 2009 21:37:47 Z2009-11-24T21:41:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/06492a9d-fb54-40a4-9e5c-1d14af450683http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/06492a9d-fb54-40a4-9e5c-1d14af450683DLewickihttp://social.msdn.microsoft.com/Profile/en-US/?user=DLewickiBrowser Enabled Forms If I have InfoPath on a PC and have browser enabled forms, how can I NOT have InfoPath open the forms on that machine when I open them from the document library?<br/><br/>Thanks,<br/><br/>DaveMon, 16 Nov 2009 20:00:19 Z2009-11-24T17:07:07Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/af845ccb-5ddf-48f6-887c-a5cb24ce95cdhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/af845ccb-5ddf-48f6-887c-a5cb24ce95cdasfaraslarryhttp://social.msdn.microsoft.com/Profile/en-US/?user=asfaraslarryContact Select and AD Name ChangesI have a contact selector control on an InfoPath form (do to complexity, the form is client based, not web based, if that has a bearing on the discussion).<br/> <br/> We had a user who's name was Manny Mo Jack, and they changed the name to Manny Jack.  The name was updated in SharedServices1 (via profile syncing from AD).  I manually removed the person from the site collection and re-added them.  The name picker there, incidentally, showed as 'Manny Jack' when I re-added them.<br/> <br/> When we open the InfoPath form and use the contact selector control, it still shows as 'Manny Mo Jack'.<br/> <br/> Where is it reading that from?  The Context receive connection is pointing to the root of the sharepoint server 'http://server'.  Is it reading from AD directly?  Is it reading from SharedServices1 on the sharepoint server?  Is it reading from profiles in the site collection which the infopath form's main submit connection is pointing to?<br/> <br/> Would really help to even know where it's getting it's data from to know where to go change it.Sat, 21 Nov 2009 14:23:48 Z2009-11-24T16:44:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/ebc1aa0a-db85-4339-97e3-9a7564bc4957http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/ebc1aa0a-db85-4339-97e3-9a7564bc4957Jacues87http://social.msdn.microsoft.com/Profile/en-US/?user=Jacues87Force a Infopath form to open in browser in TaskHi <br/> Is there a way to force an InfoPath for to always open in the browser when the user clicks on the link on email receives from task ? The email is created automaticly. I have the correct settings on the form library (open in browser), but that only works if they are in the form library.<br/> <br/> I create a task :<br/> <br/>  public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();<br/>         public SPWorkflowTaskProperties createApprovalTask_TaskProperties1 = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();<br/>         public SPWorkflowTaskProperties onApprovalTaskCreated_AfterProperties1 = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();<br/>         public SPWorkflowTaskProperties onApprovalTaskChanged_AfterProperties1 = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();<br/>         public SPWorkflowTaskProperties onApprovalTaskChanged_BeforeProperties1 = new Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties();<br/>         <br/>         private void createApprovalTask_MethodInvoking(object sender, EventArgs e)<br/>         {<br/>             createApprovalTask.TaskId = Guid.NewGuid();<br/>             createApprovalTask.TaskProperties.AssignedTo = &quot;group\me&quot;;<br/>             createApprovalTask.TaskProperties.DueDate = DateTime.Now.AddDays(7);<br/>             createApprovalTask.TaskProperties.Title = &quot;Title&quot;;<br/>             createApprovalTask.TaskProperties.SendEmailNotification = true;<br/>           <br/>         }<br/> <br/> and i have method <span style="font-family:Calibri"> CreateUrlFieldString and, </span> <span style="font-family:Calibri">GetFormsServerUrl</span> from http://www.thorprojects.com/blog/archive/2007/09/26/infopath-form-services-and-workflow-tasks.aspx<br/> <br/> How to join this method to modify link in email creates by task ?<br/>Tue, 24 Nov 2009 10:12:35 Z2009-11-24T16:37:18Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c455e9d5-7793-4fa8-8032-803f46bda563http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c455e9d5-7793-4fa8-8032-803f46bda563lxsghttp://social.msdn.microsoft.com/Profile/en-US/?user=lxsghow can I add split "," in concat function?Hello, I have a textbox to list 3 valuse from another 3 textboxs. So I use concat function, each of these 3 textbox can be blank or nonblank.<br/>Now I need to add 2 &quot;,&quot; between these 3 valuse, or one comma between 2 values in case one of them is blank.<br/><br/>e.g:<br/><br/>3 textboxs:<br/><br/>Student1: Tom or blank<br/>Student2: Lily or blank<br/>Student3: John or blank<br/><br/>The concat text:<br/><br/>students passed the exam:  Tom, Lily, John<br/><br/>or<br/><br/>students passed the exam:  Lily, John    (if Student1 is blank)<br/><br/>or<br/><br/>students passed the exam:                    (if all are blank)<br/><br/>Can anyone help with this? Thanks.Tue, 24 Nov 2009 06:43:51 Z2009-11-24T16:31:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/31cc47ff-529c-4b95-8fcc-7c24abc925e2http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/31cc47ff-529c-4b95-8fcc-7c24abc925e2Alan Aberyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alan%20AberyDate Format in Expression Box problemHi There<br/><br/>I have a problem with using a two way property field in MOSS 2007/InfoPath 2007.  I have an InfoPath form that has a two-way Date Time property, I have placed an Expression Box on the form that is bound to the Date Time field and has the format set to *dd/mm/yyyy and the locale English NZ.  This is a read only date field that is populated from a SharePoint workflow and populates the value in the form ok.  <br/><br/>The problem is that the date is always displayed in the expression box as yyyy-mm-ddT00:00:00Z (which is the value held in the XML) so it appears to be ignoring the display settings configured in the expression box.  <br/><br/>Does anyone have any idea's as to why the date is not displayed in the format dd/mm/yyyy?<br/><br/>Cheers<br/>Alan<br/> Sun, 15 Nov 2009 22:36:16 Z2009-11-24T05:32:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/85202490-3069-469a-9d1d-f18a3e07c2f4http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/85202490-3069-469a-9d1d-f18a3e07c2f4lxsghttp://social.msdn.microsoft.com/Profile/en-US/?user=lxsgHow can I count words within a textbox?<p>How can I count words within a textbox?<br/><br/>I have a textbox to list all students names <strong>Name </strong>and another textbox <strong>Number </strong>to show how many names we have keyed in <br/><br/><strong>e.g:<br/><br/></strong>If we entered</p> <p><strong>Name:  Jim, Kate, Lisa, Tom<br/></strong><br/>The numbershould be</p> <p><strong>Number: 4<br/><br/></strong>Who can help with this? Thank you.</p>Mon, 23 Nov 2009 11:17:25 Z2009-11-24T05:30:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/5576ea5f-4a9e-44c6-8068-356f00185ff4http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/5576ea5f-4a9e-44c6-8068-356f00185ff4Blue Diamondhttp://social.msdn.microsoft.com/Profile/en-US/?user=Blue%20DiamondXMLFormView web partHi All,<br/> <br/> I am trying to display my form in the XMLFormView web part and for that i am following the tutorial at <br/> <br/> http://www.nickgrattan.net/Publications/How%20to%20Host%20Microsoft%20InfoPath%20Forms%20in%20SharePoint%20Pages.pdf<br/> <br/> and in that Nick had given 2 ways to add a web part through designer and other through browser and i am following the one through browser and when i add the web part for the first time Nick mentions that we are supposed to get the error message &quot;The form is closed&quot;, but i don't get that error message so i continue with the rest of the steps but the web part doesn't display my form.<br/> Any idea on this?<br/> <br/> And also i found another tutorial <br/> http://www.21apps.com/sharepoint/infopath-forms-in-a-webpart/<br/> where he is updating a different web.config file <br/> So can any one provide a correct tutorial as what needs to be done and also explain the parameters in the web.config file.<br/> <br/> Thanks.Thu, 12 Nov 2009 00:42:02 Z2009-11-23T23:11:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4ef5d1b3-231d-42a3-9cfd-8a2473730224http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4ef5d1b3-231d-42a3-9cfd-8a2473730224neddyflandershttp://social.msdn.microsoft.com/Profile/en-US/?user=neddyflandersNo Access when submitting InfoPath form to Sharepoint<p>Hello, I am working on Item level permission code (Event Handler) when submitting my infopath form. The debugger seems to show a problem when I RunWithElevatedPrivlileges. I know it takes the system account but I have given the system account full Control to my list. Here is my script, it works perfectly with a Word Document. I am getting this error on a simple InfoPath form with two fields, nothing else is on the form. <br/><br/>public override void ItemAdded(SPItemEventProperties properties)<br/>        {<br/>            Guid siteID, webID, listID;<br/>            int itemID;<br/>            listID = properties.ListId;<br/>            itemID = properties.ListItem.ID;<br/>            using (SPWeb web = properties.OpenWeb())<br/>            {<br/>                siteID = web.Site.ID;<br/>                webID = web.ID;<br/>            }<br/>           <br/>            SPSecurity.RunWithElevatedPrivileges(delegate()<br/>            {<br/>                using (SPSite site = new SPSite(siteID))<br/>                {<br/>                    using (SPWeb web = site.OpenWeb(webID))<br/>                    {<br/>                        SPList list = web.Lists[listID];<br/>                        SPListItem item = list.GetItemById(itemID);</p> <p>                        web.AllowUnsafeUpdates = true;<br/>                        if (!item.HasUniqueRoleAssignments)<br/>                        {<br/>                            item.BreakRoleInheritance(false);<br/>                            web.AllowUnsafeUpdates = true;</p> <p>                        }  <br/>                     <br/>                       //Give Director Rights         </p> <p>                        if (item[&quot;Director&quot;] != null)<br/>                        {<br/>                            string directorAcc = item[&quot;Director&quot;].ToString();<br/>                            if (string.IsNullOrEmpty(directorAcc) != true)<br/>                            {<br/>                                int id = int.Parse(directorAcc.Split(';')[0]);<br/>                                SPUser user = item.Web.AllUsers.GetByID(id); <br/>                                string actLogin = user.LoginName;<br/>                                SPRoleDefinition roleDef = web.RoleDefinitions[&quot;Full Control&quot;];<br/>                                SPRoleAssignment assignment = null;<br/>                                SPPrincipal member = null;<br/>                                member = web.SiteUsers[actLogin];<br/>                                assignment = new SPRoleAssignment(member);<br/>                                assignment.RoleDefinitionBindings.Add(roleDef);<br/>                                item.RoleAssignments.Add(assignment);</p> <p>                                //give the current user contribute permissions<br/>                                SPUser assignmentUploader = web.SiteUsers.GetByID(properties.CurrentUserId);<br/>                                SPRoleAssignment assignment2 = new SPRoleAssignment(assignmentUploader);<br/>                                assignment2.RoleDefinitionBindings.Add(web.RoleDefinitions.GetByType(SPRoleType.Contributor));<br/>                                item.RoleAssignments.Add(assignment2);<br/>                                //</p> <p>                                //Give Owners group rights<br/>                                string NewGroup = string.Empty;<br/>                                NewGroup = string.Format(&quot;Test Database Owners&quot;);                                <br/>                                SPRoleDefinition readDef = web.RoleDefinitions[&quot;Full Control&quot;];<br/>                                SPGroup itemgroup = web.Groups[NewGroup];                               <br/>                                SPRoleAssignment addGroupAssignment = new SPRoleAssignment(itemgroup);<br/>                                addGroupAssignment.RoleDefinitionBindings.Add(readDef);                                <br/>                                item.RoleAssignments.Add(addGroupAssignment);</p> <p>                                item.Update();<br/>                                EnableEventFiring();</p> <p>                            }<br/>                        }                     </p> <p>                    }</p> <p>                }<br/>            });<br/>        }</p>Mon, 23 Nov 2009 21:39:36 Z2009-11-23T21:39:37Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4bb847d5-e175-429c-9505-80dd35864d22http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4bb847d5-e175-429c-9505-80dd35864d22Rotoruahttp://social.msdn.microsoft.com/Profile/en-US/?user=RotoruaHow can I view and/or enter data on InfoPath forms on a SharePoint server (WSS 3.0) from a client that does not have InfoPath installed?<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri">I have a 3-box isolated test bench setup.<span style="">  </span>One box is a back-end SQL server running 2008 SVR/SQL, one is a 2008 Server running WSS 3.0, and the other is a just a test client running Vista.<span style="">  </span>I installed InfoPath on the Web Server box and created a dummy test form (one or two controls), published it to a SharePoint site, and tried to view it in the client.<span style="">  </span>The client could not view it and I got the following msg “<em style="">This form template is not currently browser-enabled.<span style="">  </span>It must either be republished as a browser-enabled form, or opened using Microsoft InfoPath 2007”<span style="">  </span></em><span style=""> </span></span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Fair enough…I republished a new dummy form with “<em style="">Enable browser compatible features only</em>” checked for the form properties and got the same result. <span style=""> </span>The client could still not view the form. <span style=""> </span>And yes, <span style=""> </span>I was very careful to verify the form template got overwritten by checking the date/time stamp.</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small"><span style="font-family:Calibri">After some research, it appears that I need to install SharePoint Server 2007 to get the Microsoft Forms engine installed so the browser can render the InfoPath template forms (gads…a cost item I did not factor into the project).<span style="">   </span>I installed SharePoint Server 2007 standard (MSDN version) on the same box that is running WSS 3.0, rebooted everything, and got the same result from the client (cannot view the form).<span style="">  </span></span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">More research then pointed me towards SharePoint Server 2007 <em style="">Enterprise</em> (holy smoke!).<span style="">   </span>Ok..I installed the enterprise version of SharePoint Server 2007 and again the client could still not view the form (at least without installing InfoPath on the client).</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">This process has gone on for two days, with every combination of form creation and server configuration I could come up with.<span style="">  </span>The bottom line is, the client cannot view/enter data on an InfoPath form that resides on the server, without InfoPath on the client.<span style="">  </span>But yet, all documentation tells me that I should be able to do this by having the server render the form as browser-compatible. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">What am I missing here? Any leads or tips from the community would be greatly appreciated.</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:small;font-family:Calibri">Regards, Ian </span></p>Fri, 20 Nov 2009 23:08:09 Z2009-11-23T17:53:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/ba8fc901-a138-42f5-8db3-698cbb46e0b0http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/ba8fc901-a138-42f5-8db3-698cbb46e0b0Bill Cuihttp://social.msdn.microsoft.com/Profile/en-US/?user=Bill%20Cuihow to get the version of an infopath form tempate from "http://surwellserver:9000/_admin/ManageFormTemplates.aspx" in code?how to get the version of an infopath form tempate  from &quot;<a href="http://surwellserver:9000/_admin/ManageFormTemplates.aspx">http://surwellserver:9000/_admin/ManageFormTemplates.aspx</a>&quot; in code?<br/>how to do it?Mon, 23 Nov 2009 17:24:50 Z2009-11-23T17:24:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/144e9551-b340-4b04-8526-1bc13e83bd07http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/144e9551-b340-4b04-8526-1bc13e83bd07Prasanna2321http://social.msdn.microsoft.com/Profile/en-US/?user=Prasanna2321Life cycle of a infopath form?Life cycle of a infopath form?Mon, 23 Nov 2009 12:48:52 Z2009-11-23T17:05:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/667ef495-7c88-4363-a808-9054583b18a1http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/667ef495-7c88-4363-a808-9054583b18a1Manumithttp://social.msdn.microsoft.com/Profile/en-US/?user=ManumitCant open Infopath form attached to Forms Library in SharePoint "The processing instruction in the file is missing or invalid"<pre class=FreeTextFull><p>I am an experienced software developer new to WSS 3.0, InfoPath and SharePoint Designer. So far I have found it frustrating to work with. Here is one example that I need help with:</p> <p>With a Browser on a SharePoint site, (1)Create a new form library (2) configure it for content type management (3) from the site gallery, select the contact type (just one) that I want to populate the form library with </p> <p>Within InfoPath (1) Create the form for use in the library, (2) from the tools&gt;Dataconnections menu item, set-up (a)the sharepoint site and library, (b) how the form will be named (concatination of a couple of fields in the form) and (c) allow overwrite if file exists. (3) set up which fields in the form I want to make available to the library, (4) enable and set up the submit option.</p> <p>I then publish the form to the library using the file &gt; Publish menu option in InfoPath.</p> <p>using the browser I navigate to the form library , click New to create a new form Info path opens and then displays an error dialog stating that &quot;InfoPath cant create a new blank form as the template is invalid. If you are working from a sharepoint library you can modify the form template by clicking modity settings and columns, and then Edit Template on the Customise page&quot;.</p> <p>There is a details button on the dialog box which when pressed displays the text &quot;The processing instruction in the file is missing or invalid&quot;.</p> <p>I have tried the following suggestions already but it doesn't work:</p> <p>1) republish the form to the site.</p> <p>2) clear the infopath local cache.</p> <p>3) delete the forms library and create a new one. Then publish the form</p> <p>4) created a simple form in Infopath with just one or two text box fields and published that to the form library.</p> <p>Still I get the same error.</p> <p>I would welcome any advice as this is on a high profile job with tight deadlines - thanks</p></pre>Fri, 13 Nov 2009 11:39:20 Z2009-11-23T16:46:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/dd9ffe7d-017b-4741-b779-b8c6e5615f49http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/dd9ffe7d-017b-4741-b779-b8c6e5615f49BeaSharepointhttp://social.msdn.microsoft.com/Profile/en-US/?user=BeaSharepointProblem with date sharepointHello!<br/> <br/> I did a form infopath with one date, then i publish that in sharepoint and i have a column with this date. It is the type date in infopath, but in sharepoint it appera with date time type, but apparently you see the date normal.<br/> <br/> the problem is that i'm doing a new form that need this library and the column date, but it received the value like a date time.<br/> <br/> What i can do for resolved this?<br/> <br/> ThankThu, 19 Nov 2009 16:34:25 Z2009-11-23T16:06:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b84169e6-ea42-42ea-b82c-b5d04dd4adf7http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b84169e6-ea42-42ea-b82c-b5d04dd4adf7BeaSharepointhttp://social.msdn.microsoft.com/Profile/en-US/?user=BeaSharepointMonth in sharepointHello!<br/> <br/> I have a form infopath that i have publised in sharepoint. It has two columns with two date. I know how to put there difference in month beetween the date and also the days. Now i want to know the days free, it means say for example 5 month and 3 days. Do you now how to do that?<br/> <br/> ThankMon, 23 Nov 2009 15:44:10 Z2009-11-25T07:18:11Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9b33d000-b054-4368-9e35-1a2fa3a2b69ehttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/9b33d000-b054-4368-9e35-1a2fa3a2b69eJeremy Weisshttp://social.msdn.microsoft.com/Profile/en-US/?user=Jeremy%20WeissInstall of digital signature control<p>according to this post <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0e4e2ffc-e4aa-4dd2-b34f-6f43eb3c0680/">http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0e4e2ffc-e4aa-4dd2-b34f-6f43eb3c0680/</a> all that is needed is to register the two dll's on a client workstation.  I have tried this in my environment and it does not work, tried in both the system32 directory and the downloaded program files directory.  The dll's register fine, but when I open a browser enabled form that has the signatrue contol IE says that the active-x control needs to be enabled and to go into manage addons and enable the control.  Unfortuantly in my environment our users can't do this, but to make things worse the digital sig controls aren't in the list to be activated.  Is there something else that needs to be done besides just registering the dll.</p>Mon, 23 Nov 2009 14:29:45 Z2009-11-23T14:29:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/5a055cd0-8e23-4211-b23f-485fb2572cadhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/5a055cd0-8e23-4211-b23f-485fb2572cadp u r uhttp://social.msdn.microsoft.com/Profile/en-US/?user=p%20u%20r%20uNumber of Postback error<span class=Apple-style-span style="border-collapse:separate;color:#000000;font-family:'Times New Roman';font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span class=Apple-style-span style="border-collapse:collapse;font-family:'MS Shell Dlg';font-size:x-small">I have deployed number of Info path forms for my clients and worked fine for few weeks but they start complaining about postback error, the exact error is,  <br/> <br/> Number of postbacks, 76, has exceeded 75, the maximum allowable value per session<br/> <br/> <br/> I haven't change anything. Why this starts happening occasionally ?<br/> <br/> <br/> Any help please ?<br/> <br/> </span> </span>Sat, 21 Nov 2009 17:25:38 Z2009-11-23T13:19:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0a71d7b1-56b7-4b0f-9178-b438f3516d12http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0a71d7b1-56b7-4b0f-9178-b438f3516d12M_Parker_1170http://social.msdn.microsoft.com/Profile/en-US/?user=M_Parker_1170Doc Information Panel : Data Sources not on same domain won't connect<p align=left><font face=Arial size=2></font> </p> <p>I am setting up a word document to populate variables according to the Document information panel (infopath) values at the top of the page.</p> <p align=left> </p> <p align=left>I have added a data source to the Infopath form of the DIP, referencing a list on the site, and converting that connection to a udcx file in a data connection library which is also on the site. But, when i go to use the DIP functionality i get an error like this:</p> <p align=left> </p> <p align=left><font style="background-color:#ffff99">The Document Information Panel template could not conect to data sources because they are on a differnt domain. </font></p> <p align=left><font style="background-color:#ffff99">Data source: </font><a title="http://nrbsharepoint" href="http://nrbsharepoint"><font style="background-color:#ffff99">http://nrbsharepoint</font></a></p> <p align=left><font style="background-color:#ffff99">Document Information Panel template: </font><a title="http://nrbsharepoint/NRB" href="http://nrbsharepoint/NRB"><font style="background-color:#ffff99">http://nrbsharepoint/NRB</font></a><font style="background-color:#ffff99"> Letter Shells II/Forms/NRB Contact/abcdefghijklcustomXSN.xsn</font></p> <p align=left><font style="background-color:#ffff99">The Document Information Panel will continue to open.</font></p> <p align=left><font style="background-color:#ffff99"></font> </p> <p align=left><font style="background-color:#ffffff">I am not sure how to configure so that my &quot;domains&quot; are read as the same by Sharepoint. In my thinking, they are.</font></p> <p align=left> </p> <p align=left>Input from someone who has a good idea about this would be great.</p>Tue, 30 Oct 2007 15:31:38 Z2009-11-23T09:27:01Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4cb2d525-f710-4f0a-9cbd-ce84f18cd05fhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4cb2d525-f710-4f0a-9cbd-ce84f18cd05fNillachttp://social.msdn.microsoft.com/Profile/en-US/?user=NillacHow can I prevent InfoPath People Picker from allowing external email addresses?I've have an InfoPath form for a workflow and one of the users has noticed that if they enter an external email address in the people picker field it gets validated and doesn't raise an error.  Is there any way to prevent this from happening?<br/><br/>To reproduce:<br/>- Upload a document to a document library<br/>- Run the SharePoint built-in Approval workflow.<br/>- In the Approvers field enter me@randomdomain.com<br/>- Press tab twice to move to the next field and the Approver field passes validation.<br/><br/>Can I stop this from happening?  If I try the same thing on the standard SharePoint Task list it does not allow external emails in the people picker - so it seems to be related to InfoPath.<br/><br/>Thanks<br/>Steve.Fri, 20 Nov 2009 18:41:43 Z2009-11-25T06:32:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/aa5a7cf9-2a51-456a-98a0-2e1f5bffd3abhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/aa5a7cf9-2a51-456a-98a0-2e1f5bffd3abTapan86http://social.msdn.microsoft.com/Profile/en-US/?user=Tapan86Text Wrap IssueHello Guys,<br/> <br/> I am new to InfoPath 2007 and worked extensively using Excel and vba script.  The problem in hand is in my text field input text not wraps to new line. I wonder if i need to call some function for this. Thanks in advance.<br/> <br/> <br/>  TapanSat, 21 Nov 2009 20:44:14 Z2009-11-23T03:51:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/d5b2f270-8c3d-423f-9bc2-d1c1a7464a3ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/d5b2f270-8c3d-423f-9bc2-d1c1a7464a3awelshes99http://social.msdn.microsoft.com/Profile/en-US/?user=welshes99Create data connection from Sharepoint Infopath form Library back into an Infopath formI created a form within infopath and setup the form to submit the data to a sharepoint document library (lets call it reports library) where the data is stored. I want to create a second form within infopath that uses a data connection to the retrieve the previously submitted form data from the sharepoint form library. I read this article (http://blog-sharepoint.blogspot.com/2009/07/using-secondary-infopath-data.html) and tried to retrieve data from the Sharepoint form library but to no avail. I can display the controls on the infopath form but when I try to preview the infopath form none of the data displays. I made an attempt to publish the infopath form to a new document library to see if that made any difference. No dice. Is there a way to pull submitted infopath data into a new infopath form? Ideally I'd like to show info as a repeating table in the infopath form.Fri, 20 Nov 2009 02:17:40 Z2009-11-21T03:19:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4505be1c-91d8-4a17-a61d-63334d364fa0http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4505be1c-91d8-4a17-a61d-63334d364fa0Learning_MOSShttp://social.msdn.microsoft.com/Profile/en-US/?user=Learning_MOSSEmail infoapth form without Infopath on user's computerMy client wants me to build an infopath timesheet workflow so that once started in MOSS intranet portal, the form is emailed to the approver. The approver will not have Infopath on his/her machine. And the approver should be able to approve the form  within outlook wihtout opening Infopath( or having infopath rather) and update the workflow status in the sharepoint library. <div><br/></div> <div>Is this possible. any suggestions and links to implement this will be helpful</div>Fri, 20 Nov 2009 22:38:56 Z2009-11-23T17:25:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/e2c838b4-ae4b-4a2c-b38a-234e9462072ahttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/e2c838b4-ae4b-4a2c-b38a-234e9462072aAdeoyehttp://social.msdn.microsoft.com/Profile/en-US/?user=AdeoyeThere has been an error while processing the form. Hi, I got the Above error when i try to open my form via infopath forms services browser only.Mon, 16 Nov 2009 15:51:38 Z2009-11-20T16:04:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/81283941-e5e4-4384-81af-379c01f7ab06http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/81283941-e5e4-4384-81af-379c01f7ab06Jon Hart SAhttp://social.msdn.microsoft.com/Profile/en-US/?user=Jon%20Hart%20SAUsing Infopath to create calenderHi all<br/> <br/> Is there a way for and info path form to create a sharepoint calendar entry?Wed, 18 Nov 2009 10:12:56 Z2009-11-23T01:58:51Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c05b04de-5564-490c-9d22-2622bc86feb6http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c05b04de-5564-490c-9d22-2622bc86feb6neetukanyalhttp://social.msdn.microsoft.com/Profile/en-US/?user=neetukanyalThe form template cannot openHi All,<br/><br/>InfoPath 2003 is deployed in MOSS 2007. Some users are facing below issue when they are opening infopath form.<br/><br/>The form template cannot open because the system administrator has disabled opening form templates that require access to files and settings on your computer<br/><br/>Thanks,<br/>Neetu <hr class=sig> neetuFri, 20 Nov 2009 04:42:49 Z2009-11-20T10:44:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0903228f-4875-448d-a495-3dcc80ccd474http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/0903228f-4875-448d-a495-3dcc80ccd474sjadhavhttp://social.msdn.microsoft.com/Profile/en-US/?user=sjadhavHow to enable infopath 2003 form to browser campatibleHi Friends,<br/><br/>I am using VS 2003 infopath tool to create infopath forms, now its seems very difficult for me to publish it in brower. Can anyone help me..at least give suggestion on it...is it possible or not to publish 2003 infopath(created with VS 2003 tool) in web browser...<br/><br/>Thanks in advance..Fri, 20 Nov 2009 06:21:07 Z2009-11-20T10:41:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/20f8dc32-d12b-411b-a9e6-e5b8c3642b60http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/20f8dc32-d12b-411b-a9e6-e5b8c3642b60Alan Aberyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alan%20AberyRemoving Promoted Property ValuesHi There<br/><br/>I have a simple Form library set up in MOSS 2007 that accepts InfoPath forms, the InfoPath form contains a Date Picker and a TextBox control.  The form is Fully Trusted and Signed and published to MOSS as a Managed Template and is browser enabled with both data items as two-way promoted properties.<br/><br/>My Form Library now has the InfoPath Form as a content type and I can open a new form and submit it and MOSS displays the two properties in its List, I can right click and edit properties and change the values and they are reflected in the InfoPath form.  All good so far.... <br/><br/>Does anyone know the reason why MOSS 2007 doesn't save the users changes to a property if the text box or the date is cleared?<br/><br/>I have double checked the InfoPath form and the Site Columns and both allow blanks.<br/><br/>Cheers<br/>Alan  Wed, 18 Nov 2009 19:34:01 Z2009-11-20T02:52:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b47be2bf-acdc-43a7-b793-ccb54ffc6074http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/b47be2bf-acdc-43a7-b793-ccb54ffc6074Loran Cehackhttp://social.msdn.microsoft.com/Profile/en-US/?user=Loran%20CehackDoes a Browser Enabled Infopath Form Allow Rich Text Fields from a Sharepoint List?I'm trying to get a certain Rich Text Field from a Sharepoint list to appear in my Browser Enabled Infopath form. Is this allowed? If not, is there a way we can pull a Rich Text Field into an Infopath form.Thu, 19 Nov 2009 15:39:11 Z2009-11-19T20:50:46Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7eddc3be-49bf-43f2-b109-0661557f387ehttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7eddc3be-49bf-43f2-b109-0661557f387eVenkata Dilip Kumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Venkata%20Dilip%20KumarInfopath Forms Setting Permissionshi,<br/> <br/> how to set permission for Infopath Forms at form library level once the form is published as a content type in my site.<br/> <br/> Regards<br/> <br/> Dilip KumarThu, 12 Nov 2009 11:36:45 Z2009-11-19T16:55:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/e869a447-d2c4-4211-a3c4-c3a0377a7631http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/e869a447-d2c4-4211-a3c4-c3a0377a7631manoj2009http://social.msdn.microsoft.com/Profile/en-US/?user=manoj2009Clearing value of few published columns from a form libraryHi,<br/>I have a moss form library with with an infopath form published on it. Some of the published columns are created by merging 2 or more data sources (merged while publishing). I want to clear the values of some of these merged columns in all the submitted forms. There are more than 2000 forms submitted in the library. <br/><br/>Is there a way to achieve this easily?<br/><br/>Tia <br/>ManojThu, 19 Nov 2009 09:24:28 Z2009-11-19T15:16:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/96f71ce6-1544-4f8d-a81b-f21eee710dafhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/96f71ce6-1544-4f8d-a81b-f21eee710dafNripendrahttp://social.msdn.microsoft.com/Profile/en-US/?user=NripendraPassing data between infopath forms without savingHello Everyone<br/> <br/> I am working on a project which require two infopath forms to pass data between them without actually storing it to database. I am open to both code and non code solution. Thu, 19 Nov 2009 12:19:19 Z2009-11-19T15:45:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7949beb9-e71b-40dc-9d79-3b5fd9917a35http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7949beb9-e71b-40dc-9d79-3b5fd9917a35DLewickihttp://social.msdn.microsoft.com/Profile/en-US/?user=DLewickiSingle Document permissions and InfopathI want to fill out an InfoPath created form in the browser and when the form is submitted, have the permissions of the submitted form set to read/write only for the person who submitted the form. Is this possible to do this in an automated way, perhaps through Infopath publishing options?? Or do I have to set the permissions manually for each form after they are generated and submitted?<br/><br/>Thanks,<br/><br/>DaveMon, 09 Nov 2009 20:05:02 Z2009-11-20T15:25:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/88e2303a-0681-407a-a5df-21deeafd4722http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/88e2303a-0681-407a-a5df-21deeafd4722Dayna Litherlandhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dayna%20LitherlandExport InfoPath data directly to a third party/ExcelHello,<br/><br/>I was hoping that you could help, what Im trying to do is store the information inputted into an InfoPath form and directly export to excel, in the future this will be a third party application that is used within the business.<br/><br/>Im aware a method for the moment would be to promote the fields within InfoPath and export within the SharePoint list. But I was wondering if it was possible to export directly? Use of a button?<br/><br/>Your help will be most appreciated!!!<br/><br/>Kind Regards,<br/>DaynaThu, 19 Nov 2009 09:01:52 Z2009-11-19T09:01:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7d96e9f6-dc84-4ed6-8a1b-576728fdf8f5http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/7d96e9f6-dc84-4ed6-8a1b-576728fdf8f5Dayna Litherlandhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dayna%20LitherlandInfoPath Data ConnectionsHello,<br/><br/>I was hoping that you could help me... I am trying to achieve the following:<br/><br/>Have an external source, that stores data of users/email addresses/managers. <br/>Use an infopath form to get the data and place it in the form from a drop down.<br/>Use the information defined in the form for use within SPD.<br/><br/>Could you please advise as to the best methods to achieve this?<br/><br/><br/>Your help, as always, is greatly appreciated.<br/><br/>Kind Regards,<br/>DaynaThu, 12 Nov 2009 12:56:45 Z2009-11-19T08:55:26Zhttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bbeec183-9eaa-464b-a0fc-a1979ee0f2eehttp://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/bbeec183-9eaa-464b-a0fc-a1979ee0f2eeat0zhttp://social.msdn.microsoft.com/Profile/en-US/?user=at0zInfoPath form is not showing user information from AD when openinig in browser.Hi All,<br/><br/>I got stuck in a issue since last few days, the problem is with InfoPath form.<br/>I created a infopath form that will retrieve user information from AD when it loads. For this I have used C Sharp code behind. When we preview this code in the InfoPath is working fine (showing all information), but when we publish this form in SharePoint portal, it comming as a blank form. It's opening in browser, but emply, there are no data inside.<br/>Here is the code that we use :<br/> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> Microsoft.Office.InfoPath;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> System;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> System.Xml;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> System.Xml.XPath;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> System.DirectoryServices;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">using</span><span style="font-size:7pt;font-family:'Courier New'"> mshtml;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'">//using System.Windows.Forms;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:blue;font-family:'Courier New'">namespace</span><span style="font-size:7pt;font-family:'Courier New'"> DemoForm</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'">{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">    </span><span style="color:blue">public</span> <span style="color:blue">partial</span> <span style="color:blue">class</span> <span style="color:teal">FormCode</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span><span style="color:green"></span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span><span style="color:green"></span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span><span style="color:blue">public</span> <span style="color:blue">void</span> InternalStartup()</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span>EventManager.FormEvents.Loading += <span style="color:blue">new</span> <span style="color:teal">LoadingEventHandler</span>(FormEvents_Loading);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span><span style="color:blue">public</span> <span style="color:blue">void</span> FormEvents_Loading(<span style="color:blue">object</span> sender, <span style="color:teal">LoadingEventArgs</span> e)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">             </span><span style="color:green">// Write your code here.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">// Get the user name of the current user.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                   </span><span style="color:blue">string</span> userName = <span style="color:blue">this</span>.Application.User.UserName;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">// Create a DirectorySearcher object using the user name </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">// as the LDAP search filter. If using a directory other</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">// than Exchange, use sAMAccountName instead of mailNickname.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green"></span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:teal">DirectorySearcher</span> searcher = <span style="color:blue">new</span> <span style="color:teal">DirectorySearcher</span>(<span style="color:blue">new</span> <span style="color:teal">DirectoryEntry</span>(<span style="color:maroon">&quot;LDAP://path&quot;</span>, <span style="color:teal">AuthenticationTypes</span>.Secure), <span style="color:maroon">&quot;(sAMAccountName=&quot;</span> + userName + <span style="color:maroon">&quot;)&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">// Search for the specified user.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:teal">SearchResult</span> result = searcher.FindOne();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green">/*XPathNavigator xnForm = this.CreateNavigator();</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"><span style="">                </span>XmlNamespaceManager xnsm = this.NamespaceManager;*/</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:teal">XPathNavigator</span> xnMyForm = <span style="color:blue">this</span>.CreateNavigator();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:teal">XmlNamespaceManager</span> ns = <span style="color:blue">this</span>.NamespaceManager;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green"></span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:teal">DirectoryEntry</span> employee = result.GetDirectoryEntry();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">               </span><span style="">     </span><span style="color:green">// Assign the specified properties to string variables.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> FirstName = employee.Properties[<span style="color:maroon">&quot;givenName&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:FirstName&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(FirstName);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:FirstName&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">               </span><span style="">        </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> LastName = employee.Properties[<span style="color:maroon">&quot;sn&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:LastName&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(LastName);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex2)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:LastName&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> Mail = employee.Properties[<span style="color:maroon">&quot;mail&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Email&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                      </span><span style=""> </span>.SetValue(Mail);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex3)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Email&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">          </span><span style="">          </span><span style="color:blue">string</span> Location = employee.Properties[<span style="color:maroon">&quot;physicalDeliveryOfficeName&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> Title = employee.Properties[<span style="color:maroon">&quot;title&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Title&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(Title);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex4)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Title&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> Phone = employee.Properties[<span style="color:maroon">&quot;TelephoneNumber&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:TelephoneNumber&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(Phone);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex5)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:TelephoneNumber&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">  </span><span style="">                     </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> Department = employee.Properties[<span style="color:maroon">&quot;department&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Department&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(Department);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex6)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Department&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">          </span><span style="">             </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">try</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span><span style="color:blue">string</span> ManagerName = employee.Properties[<span style="color:maroon">&quot;manager&quot;</span>].Value.ToString();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>ManagerName = ManagerName.Substring(3, ManagerName.IndexOf(<span style="color:maroon">&quot;,&quot;</span>) - 3);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                        </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Manager&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(ManagerName);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex7)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">           </span><span style="">             </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Manager&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(<span style="color:maroon">&quot;NA&quot;</span>);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Alias&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(userName);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>xnMyForm.SelectSingleNode(<span style="color:maroon">&quot;/my:myFields/my:Location&quot;</span>, ns)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                       </span>.SetValue(Location);</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span><span style="color:green">// Clean up.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>xnMyForm = null;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>searcher.Dispose();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>result = null;</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                    </span>employee.Close();</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span><span style="color:green"></span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span>} <span style="color:green">//end of outer try block</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span><span style="color:blue">catch</span> (<span style="color:teal">Exception</span> ex)</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">            </span>{</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                   </span><span style="color:green">//MessageBox.Show(&quot;The following error occurred: &quot; +ex);</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;color:green;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">                </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">     </span><span style="">       </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">        </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"> </span><span style="font-size:7pt;font-family:'Courier New'"><span style="">      </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'"><span style="">    </span>}</span></p> <p class=MsoNormal style="margin:0in 0in 0pt;line-height:normal"><span style="font-size:7pt;font-family:'Courier New'">}</span></p> <br/>Could you please tell where is the real issue...is it with the code or we have to do anything else that we are missing.<br/><br/>Mon, 16 Nov 2009 13:15:02 Z2009-11-19T05:43:40Z