<?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: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70714.aspx</link><pubDate>Thu, 29 Sep 2011 14:26:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70714</guid><dc:creator>gufan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70714</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Okay.&lt;/p&gt;&lt;p&gt;I have a document managment software here that is also able to do version control. Some applications, like all microsoft office applications, have an addin to directly interact with the DMS. This means that documents from all these office application can directly be stored in the DMS. InfoPath was missing until now but we might need it in the future so I am trying to integrate it. And of course we do not only want to save the XML files that are produced with the Filler, but also the designs that are used for this. Of course there is a way to get all these files inside the DMS without the integration, but it&amp;#39;s easier and more intuitive to directly do it in the office application without the need to save it on the hard disc first and then add it to the DMS afterwards.&lt;/p&gt;&lt;p&gt;So in the end it would be nice if I could save the template files into the DMS and when i open it with the Filler from within the DMS (that works perfectly), to also save the XML file produced into the DMS directly. Everything without the need of saving anything to the hard disc or anything like that. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70711.aspx</link><pubDate>Thu, 29 Sep 2011 14:09:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70711</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70711.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70711</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having trouble understanding what it is that you&amp;#39;re trying to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could you describe your scenario a bit more clearly?&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70710.aspx</link><pubDate>Thu, 29 Sep 2011 13:40:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70710</guid><dc:creator>gufan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70710</wfw:commentRss><description>&lt;p&gt;Thank you for your answers.&lt;/p&gt;&lt;p&gt;How about doing both?&lt;br /&gt;Saving the dev version of the XSN and the published files sounds both very useful to me.&lt;br /&gt; When i open the XSN file in the filler, all i get is an XML when i save the file with my addin, not the XSN. I know that i can retrieve the XSN file name and path but this is somewhat complicated for the user.&lt;br /&gt;Is it possible to add an option to the Publish menu?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70116.aspx</link><pubDate>Thu, 08 Sep 2011 06:22:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70116</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70116</wfw:commentRss><description>&lt;p&gt;There probably is some misconception going on here.&lt;/p&gt;
&lt;p&gt;In this sentence,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This would require that i have opened the Filler with a document based on the xsn file, right?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Are you asking if you would have to open the Filler with an .XML document created from that XSN?&amp;nbsp; If so, that is not the case.&amp;nbsp; If you open the XSN itself in the Filler (as opposed to Preview mode), then you should be able to retrieve the XSN name and path.&lt;/p&gt;
&lt;p&gt;There are two ways to save an XSN from the Designer.&amp;nbsp; Save/Save As is for saving your &amp;quot;dev&amp;quot; version of the XSN, that you plan to reopen later and work on.&amp;nbsp; When you want to save out the XSN for other people to open it in the Filler&amp;nbsp;and create forms with it, you should use the Publish feature.&amp;nbsp; You can use this to publish the form to a local folder or a network share.&amp;nbsp; Once you&amp;#39;ve published it, people can just double-click it to open it in the Filler.&lt;/p&gt;
&lt;p&gt;Maybe the Save vs. Publish part is what&amp;#39;s causing the confusion here?&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70105.aspx</link><pubDate>Wed, 07 Sep 2011 18:57:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70105</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70105</wfw:commentRss><description>&lt;p&gt;So, you&amp;#39;re saving it to a folder and then having people double click on it to open, right? Then, you want to show the filename somewhere in the form. Is that right?&lt;/p&gt;&lt;p&gt;I think Jimmy&amp;#39;s suggestion to use the processing-instruction might work. Search for that. There should be a blog post that describes how to do it.&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70101.aspx</link><pubDate>Wed, 07 Sep 2011 15:43:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70101</guid><dc:creator>gufan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70101</wfw:commentRss><description>&lt;p&gt;This would require that i have opened the Filler with a document based on the xsn file, right?&lt;/p&gt;&lt;p&gt;That will not work for my needs. I want to save the xsn file like the standard save functionality (+ doing extra things with the file afterwards). I don&amp;#39;t understand why there shouldn&amp;#39;t be a way to do this. The only reason for me would be a misconception.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70100.aspx</link><pubDate>Wed, 07 Sep 2011 15:12:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70100</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70100.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70100</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not aware of any way to get the XSN filename when running a form in preview mode, but you can use &lt;strong&gt;thisXDocument.Solution.URI&lt;/strong&gt; to get it in published forms.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also possible to codelessly&amp;nbsp;extract this value from the form&amp;#39;s processing instructions, but here again, this will only work for published forms.&lt;/p&gt;</description></item><item><title>how to get the filename of a xsn file</title><link>https://www.infopathdev.com:443/forums/thread/70098.aspx</link><pubDate>Wed, 07 Sep 2011 14:24:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70098</guid><dc:creator>gufan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=70098</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi.&lt;/p&gt;&lt;p&gt;I already found a way to get the xml filename from the InfoPath Filler. I used The _Application3, Window2&amp;nbsp; and _XDocument3 interfaces for this.&lt;/p&gt;&lt;p&gt;But i would also like to have the filename of the xsn file. There is a GetSolutionURI() method in the _Application3 interface that sounds like what i would need. But for getting out something of this i need a cacheID and in don&amp;#39;t know where is should get this from.&lt;/p&gt;&lt;p&gt;So my question is: how do i get the filename of the xsn file that is currently opened by the InfoPath Designer? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>