Current state of the object - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Current state of the object Current state of the object Last post 02-27-2007 11:27 PM by ekzarov. 2 replies. Page 1 of 1 (3 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-22-2007 09:26 AM ekzarov Joined on 12-21-2006 Ukraine Posts 106 Current state of the object Reply Contact Hello. I have MOSS 2007 and Infopath 2007.My form template published as content type to sharepoint library.It contains this code:public void FormEvents_Loading(object sender, LoadingEventArgs e){NamespaceManager.AddNamespace("xsf", "http://schemas.microsoft.com/office/infopath/2003/solutionDefinition"); this.Template.Manifest.CreateNavigator().SelectSingleNode("xsf:submit/xsf:davAdapter[@name='MainSubmit']/xsf:folderURL/@value", NamespaceManager).SetValue(Url);}When I load my form from library I get exception:Operation is not valid due to the current state of the object.Have you any ideas ??? Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com 02-27-2007 09:51 PM In reply to Patrick Halstead Joined on 08-07-2006 Posts 5,112 Re: Current state of the object Mark as Not AnswerMark as Answer... Reply Contact Hi Alexander,Who calls this function? How about moving it to the OnLoad event handler? Sounds like it's called earlier than it should be called. Patrick HalsteadProject Manager at Qdabra 02-27-2007 11:27 PM In reply to ekzarov Joined on 12-21-2006 Ukraine Posts 106 Re: Current state of the object Mark as Not AnswerMark as Answer... Reply Contact Hi, Patrick !I have browser-enabled form and all that I have is just FormEvents_Loading event, wich occurs when form has loaded ... And one more thing:this.Template.Manifest.CanEdit return for me "false"... Best regards,Alexander EkzarovKyiv, Ukrainesilverlightnet.blogspot.com Page 1 of 1 (3 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.