<?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: A lightweight approach to retrieving the solutionVersion attribute from the xsn?</title><link>https://www.infopathdev.com:443/forums/thread/35516.aspx</link><pubDate>Tue, 09 Dec 2008 03:13:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35516</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35516</wfw:commentRss><description>&lt;p&gt;Cool.&amp;nbsp; We use CabLib in our solutions here at Qdabra, and while it has a few flaws and its error messages aren&amp;#39;t great, it tends to get the job done.&lt;/p&gt;
&lt;p&gt;Best of luck.&lt;/p&gt;</description></item><item><title>Re: A lightweight approach to retrieving the solutionVersion attribute from the xsn?</title><link>https://www.infopathdev.com:443/forums/thread/35515.aspx</link><pubDate>Tue, 09 Dec 2008 03:07:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35515</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35515</wfw:commentRss><description>&lt;p&gt;Jimmy, thanks. Myself as soon as I quit trying to find an InfoPath-specific solution, I turned to this very CabLib which, according to the description, is quite impressive. I&amp;#39;ll post a snippet of the eventual solution unless I forget to.&lt;/p&gt;</description></item><item><title>Re: A lightweight approach to retrieving the solutionVersion attribute from the xsn?</title><link>https://www.infopathdev.com:443/forums/thread/35514.aspx</link><pubDate>Tue, 09 Dec 2008 02:46:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35514</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35514</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t understand your situation entirely, as in how exactly you are using these InfoPath files, but I will answer it as well as I can.&lt;/p&gt;
&lt;p&gt;The .NET foundation classes, to the best of my knowledge, do not provide any good functionality for CAB extraction and that requires an external library.&amp;nbsp; One such library is &lt;a class="" href="http://www.codeproject.com/KB/files/CABCompressExtract.aspx"&gt;CABLIB&lt;/a&gt;, which is free to use and licensed under the Code Project Open License.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you have access to the .XSN template from whatever server code you&amp;#39;re writing, you can use this library to extract the file, look at the manifest.xsf file inside, and determine the solution version.&lt;/p&gt;</description></item><item><title>A lightweight approach to retrieving the solutionVersion attribute from the xsn?</title><link>https://www.infopathdev.com:443/forums/thread/35513.aspx</link><pubDate>Tue, 09 Dec 2008 02:26:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35513</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35513</wfw:commentRss><description>&lt;p&gt;Hi, guys&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;d like to make my InfoPath based .NET solutions (not necessarily using the InfoPath or other Office &lt;em&gt;applications&lt;/em&gt;) more stable and scalable&amp;nbsp;and get the most out of the schemas and so on. Sometimes I need to generate the xml files and store them in the Forms Libraries and the like and make sure that the current version of the template is used when opening those in InfoPath or via browser.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Certainly, we can create the &lt;em&gt;Microsoft.Office.Interop.InfoPath&lt;/em&gt;.&lt;strong&gt;Application&lt;/strong&gt; object, get the &lt;em&gt;msoInfoPathApp.&lt;/em&gt;&lt;strong&gt;XDocuments&lt;/strong&gt; (XDocumentsCollection) property thereof, execute &lt;em&gt;xDocs.&lt;/em&gt;&lt;strong&gt;NewFromSolution&lt;/strong&gt;(&amp;quot;...&amp;quot;,1) to get a new xml form and use its &lt;em&gt;newForm&lt;/em&gt;&lt;strong&gt;.Solution.Version&lt;/strong&gt; property. But this approach requires the client application to be available and is not suitable for server environments. Not to mention the amount of resources used every time.&lt;/p&gt;
&lt;p&gt;Can anyone suggest a more lightweight approach to the problem? At least a shortcut to the appropriate namespaces and classes (to deal with CAB from .NET) would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item></channel></rss>