<?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: InfoPath closing without opening form - problem with vbscript</title><link>https://www.infopathdev.com:443/forums/thread/125571.aspx</link><pubDate>Mon, 23 Sep 2024 14:59:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125571</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125571.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125571</wfw:commentRss><description>It has been many years since I&amp;#39;ve looked at VBScript for InfoPath... but I&amp;#39;m wondering what happens if you leave that line of code that is resetting the gobjXDocument commented out? I&amp;#39;m curious why that variable is being set and then reset.</description></item><item><title>InfoPath closing without opening form - problem with vbscript</title><link>https://www.infopathdev.com:443/forums/thread/125570.aspx</link><pubDate>Mon, 23 Sep 2024 03:32:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125570</guid><dc:creator>thegoat77</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125570</wfw:commentRss><description>I am in a team in a large organisation that supports a number of InfoPath forms. We are having a strange problem with one form in particular since a few weeks ago.

We have narrowed it down to the fact that a recent Microsoft Office update that our IT group rolled out, specifically version/update 2402. Basically those PC&amp;#39;s that don&amp;#39;t have the update can open this form ok, but for those that have the update installed, InfoPath will open briefly, but then close out before the form opens.

I admit I&amp;#39;m not an InfoPath expert, but I do know that form references a number of VB scripts. As such, we have narrowed down the issue to one line of code (in a large file of other functions). Specially, it seems be when it does this - &amp;quot;set gobjXDocument = window.external.window.XDocument&amp;quot;. The two lines that precede this are &amp;quot;window.returnValue = 1&amp;quot; and &amp;quot;set gobjXDocument = window.dialogArguments&amp;quot;

When the line of code I mentioned s commented out, the form opens, but when it&amp;#39;s not, we experience what I mentioned above where InfoPath will open, but then close without opening the form.

Could anyone assist?

Thanks in advance</description></item></channel></rss>