<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51846.aspx</link><pubDate>Wed, 17 Feb 2010 13:59:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51846</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51846</wfw:commentRss><description>&lt;p&gt;You are most welcome Damith.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;It&amp;#39;s an honour to be of some help..&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51845.aspx</link><pubDate>Wed, 17 Feb 2010 13:45:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51845</guid><dc:creator>damith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51845</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Thanks Jimmy and Vishal, &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;I&amp;#39;m able to fix the issue, by setting full trust and signing the form.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Thanks again for helping me to solve these issues by giving correct guidance &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51842.aspx</link><pubDate>Wed, 17 Feb 2010 12:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51842</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51842</wfw:commentRss><description>&lt;p&gt;Dear Damith&lt;/p&gt;
&lt;p&gt;please check if your infopath form is set to full trust mode.&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51841.aspx</link><pubDate>Wed, 17 Feb 2010 12:27:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51841</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51841</wfw:commentRss><description>The template&amp;#39;s trust level must be set to full trust in order to access files on the local filesystem.&lt;br /&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51840.aspx</link><pubDate>Wed, 17 Feb 2010 12:24:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51840</guid><dc:creator>damith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51840</wfw:commentRss><description>&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;I&amp;#39;m able to replace DOM of infopath form using XML file as below, this is working fine in debug mode, however when open the infopath file it prompt error message. &lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;[&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventHandler&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(MatchPath=&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;CTRL2_5&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, EventType=&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;InfoPathEventType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.OnClick)]&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CTRL2_5_OnClick(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;DocActionEvent&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Create a System.Xml XmlDocument and load an XML file.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;doc.Load(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\\Form1.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;); &lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Create an MSXML DOM object.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMDocument2&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; newDoc = (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMDocument2&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)thisXDocument.CreateDOM();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Load the DOM with the XML from the System.XML object.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;newDoc.loadXML(doc.DocumentElement.OuterXml);&lt;/p&gt;newDoc.setProperty(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SelectionNamespaces&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;xmlns:my=\&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2010-02-16T10:55:20\&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; newNode = newDoc.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;IXMLDOMNode&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; rootNode = thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//replace it with the new root node&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;rootNode.parentNode.replaceChild(newNode, rootNode);&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the error message prompt when click on the button:&lt;/p&gt;
&lt;p&gt;Request for the permission of type &amp;#39;System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp;amp; stackMark, Boolean isPermSet)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Security.CodeAccessPermission.Demand()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.CompressedStack.runTryCode(Object userData)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.OpenUrl()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlTextReaderImpl.Read()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlDocument.Load(XmlReader reader)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at System.Xml.XmlDocument.Load(String filename)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at KithPrj2.KithPrj2.CTRL2_5_OnClick(DocActionEvent e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Why this is only working in debug mode? how to avoid this error? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51832.aspx</link><pubDate>Wed, 17 Feb 2010 07:36:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51832</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51832</wfw:commentRss><description>&lt;p&gt;Dear Dmith,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can make form library as secondary data connection and then u can use secondary data connection to populate the infopath form, by conditional formatting you can make a check if the xml value in dropdown exists,and if it does populate the form with data in xml form.Let me know if your functionality is achieved..&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51831.aspx</link><pubDate>Wed, 17 Feb 2010 07:09:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51831</guid><dc:creator>damith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51831</wfw:commentRss><description>&lt;p&gt;&lt;span style="FONT-FAMILY:Arial;FONT-SIZE:10pt;"&gt;Dear Vishal,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:Arial;FONT-SIZE:10pt;"&gt;InfoPath form can save as XML; I need to load&amp;nbsp;data&amp;nbsp;from one of those xml files back to InfoPath form using c# code &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:Arial;FONT-SIZE:10pt;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51829.aspx</link><pubDate>Wed, 17 Feb 2010 04:59:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51829</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51829.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51829</wfw:commentRss><description>&lt;p&gt;Dear Damith,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;do u want to load xml files as attachment to inopath form..&lt;/p&gt;</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51806.aspx</link><pubDate>Tue, 16 Feb 2010 13:50:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51806</guid><dc:creator>damith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51806.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51806</wfw:commentRss><description>thanks Vishal for quick response, 

i have InfoPath form with set of input text boxes and drop downs, in same form there is a button called save, which used to save InfoPath form as XML file.  in top of that form user can select previously saved InfoPath  XML files in a drop down and load the XML parameters to the form by clicking on load button. 

i have problems with loading previous XML files and bind it to InfoPath form, what is the correct way to load XML back to InfoPath Form? changing form DOM XML or any other way? please help me.

thanks</description></item><item><title>Re: populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51804.aspx</link><pubDate>Tue, 16 Feb 2010 13:01:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51804</guid><dc:creator>princevis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51804.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51804</wfw:commentRss><description>&lt;p&gt;Hi Damith&lt;/p&gt;
&lt;p&gt;could you be more specific in terms of your requirement, i mean if you want to open saved instance of an infopath form, you already have a save option&amp;nbsp;in infopath forms,using which the form gets saved with a unique id to a form library and you can open or edit it later.If there is something else that you want,please explain..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>populate an InfoPath  form by specifying a saved instance of it</title><link>https://www.infopathdev.com:443/forums/thread/51801.aspx</link><pubDate>Tue, 16 Feb 2010 12:12:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51801</guid><dc:creator>damith</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51801</wfw:commentRss><description>I&amp;#39;m new to InfoPath  development and need help from experts in this forum,

currently i&amp;#39;m developing application using InfoPath  2003 and visual studio 2005, the requirement is to populate an InfoPath  form by specifying a saved instance of it without opening a new instance. can anybody guide me to do this work?

thanks</description></item></channel></rss>