<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Filling NodeValues on NewFromSolution call</title><link>https://www.infopathdev.com:443/forums/thread/13506.aspx</link><pubDate>Thu, 25 Aug 2005 23:53:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13506</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13506.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13506</wfw:commentRss><description>You can do it using something of this kind&lt;br /&gt;Microsoft.Office.Interop.InfoPath.XDocument myDOM = myapp.XDocuments.NewFromSolution("abc");&lt;br /&gt;&lt;br /&gt;and use myDom to set the values.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>Filling NodeValues on NewFromSolution call</title><link>https://www.infopathdev.com:443/forums/thread/12539.aspx</link><pubDate>Thu, 25 Aug 2005 14:56:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12539</guid><dc:creator>pcpimpster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12539.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12539</wfw:commentRss><description>&lt;b&gt;I need a jumstart. Im using the following code in my vb.net application to create a form from a template&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;            Dim objXApp As New Microsoft.Office.Interop.InfoPath.Application&lt;br /&gt;            objXApp.XDocuments.NewFromSolution(Application.StartupPath &amp; "\templates\" &amp; filename)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;and then i do the following command to save the new form to its proper location in my application&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;objXApp.ActiveWindow.XDocument.SaveAs(Application.StartupPath &amp; "\" &amp; pform &amp; "\" &amp; caseid &amp; "\" &amp; caseid &amp; "-" &amp; abbr &amp; "-" &amp; repid &amp; ".xml")&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How can i from my vb.net app, populate fields in my newly created form?&lt;br /&gt;or&lt;br /&gt;How can I (from managed code) get the file name of the form itself during onLoad.&lt;br /&gt;&lt;br /&gt;Either one of these will allow me to populate further info on the form from my access db based on the form knowing what its caseid is.&lt;br /&gt;&lt;br /&gt;Thanks for the Help&lt;/b&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>