You add an HTML resource file to the InfoPath form. This HTML resource file displays a modal dialog box.
You use a script in the modal dialog box to interact with the InfoPath 2007 form.
You try to open the modal dialog box on a computer that has Windows Internet Explorer 8 installed.
In this scenario, you cannot open the modal dialog box. Additionally, you receive the following error message:
An error has occurred in the script on this page.
Error: 'gobjXDocument.UI' is null or not an object
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To resolve this issue, you have to add a registry value. To do this, follow these steps:
Click Start, click Run, type regedit, and then press ENTER.
Locate and then click the following registry subkey: