<?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>Environment Variable in href Attribute of mso-infoPathSolution Processing Tag</title><link>https://www.infopathdev.com:443/forums/thread/96644.aspx</link><pubDate>Tue, 25 Mar 2014 20:48:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96644</guid><dc:creator>senecalakemonster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96644</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m hoping someone here can give me a definitive answer on what I&amp;#39;d call an experiment with the &lt;font face="Lucida Console" size="2"&gt;href&lt;/font&gt; attribute of the &lt;font face="Lucida Console" size="2"&gt;mso-infoPathSolution&lt;/font&gt; processing tag in XML generated from an InfoPath form template.&lt;br /&gt;&lt;br /&gt;Typically, InfoPath embeds the location of the form used to generate the XML in this attribute.&amp;nbsp; E.g., &lt;font face="Lucida Console" size="2"&gt;href=&amp;quot;file:///C:\InfoPath\Forms\Form1.xsn&amp;quot;&lt;/font&gt;.&amp;nbsp; This is frustrating for my users who may not all want to store Form1.xsn at C:\Forms, but they also aren&amp;#39;t too keen on the idea of having to run scripts or otherwise manually update the href attribute in the XML.&lt;br /&gt;&lt;br /&gt;This lead me to wonder if it is possible to use a Windows environment variable in the &lt;font face="Lucida Console" size="2"&gt;href&lt;/font&gt; attribute.&amp;nbsp; E.g., &lt;font face="Lucida Console" size="2"&gt;href=&amp;quot;%FORM_PATH%\Form1.xsn&amp;quot;&lt;/font&gt; or &lt;font face="Lucida Console" size="2"&gt;href=&amp;quot;file:///%FORM_PATH%\Form1.xsn&amp;quot;&lt;/font&gt;.&amp;nbsp; Unfortunately, neither of these approaches has worked for me.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In the first case, InfoPath reports an error when attempting to open the form: &amp;quot;Infopath cannot open the following file: C:\InfoPath\Form1.xml.&amp;nbsp; To open the file, access to the following for template is required:&amp;nbsp; file:///C:\InfoPath\%25FORM_LOC%25\Form1.xsn&amp;quot;.&amp;nbsp; In the second case, InfoPath simply reports &amp;quot;InfoPath cannot open the following file:&amp;nbsp; C:\InfoPath\Form1.xml&amp;quot;.&lt;br /&gt;&lt;br /&gt;It seems as though the URL format that InfoPath expects (either something on a network location or a file URL) won&amp;#39;t permit me to use an environment variable.&amp;nbsp; InfoPath definitely doesn&amp;#39;t seem to like the percent sign in the URL, either, as I get the same error in the first case whether I use &lt;font face="Lucida Console" size="2"&gt;%&lt;/font&gt;, &lt;font face="Lucida Console" size="2"&gt;%25&lt;/font&gt; or &amp;amp;&lt;font face="Lucida Console" size="2"&gt;#37;&lt;/font&gt;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m thinking that this simply is not possible, but I wanted to ask here to be certain.&amp;nbsp; I&amp;#39;m running InfoPath 2010, and my forms are stand-alone, classic forms (no VB code, no SharePoint integration, simply saved locally on a user&amp;#39;s machine, neither installed nor otherwise signed with a certificate).&lt;/p&gt;&lt;p&gt;Thanks much in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>