Microsoft KB Archive/931427
Article ID: 931427
Article Last Modified on 2/22/2007
- Microsoft Office InfoPath 2007
When you try to use Microsoft Script Editor to debug custom script that was written for a Microsoft Office InfoPath 2007 form template, a blank Microsoft Script Editor window opens. The script is not displayed. This problem occurs when the custom script was written in the Microsoft JScript or Microsoft Visual Basic Scripting Edition (VBScript) scripting language.
By default, Web Debugging is not installed in the 2007 Microsoft Office system. Therefore, you cannot use Microsoft Script Editor to debug the script because Web Debugging is not installed.
To resolve this issue, install Web Debugging.
Steps to reproduce the issue
- Start Microsoft Office InfoPath 2007.
- In the Getting Started dialog box, click Design a Form Template.
- In the Design a Form Template dialog box, click Blank, click to clear the Enable browser-compatible features only check box, and then click OK.
- Click Tools, and then click Form Options.
- In the Form Options dialog box, click Programming under Category.
- Click JScript or VBScript in the Form template code language list, and then click OK.
- Click Tools, click Programming, and then click On Load Event.
- In Microsoft Script Editor, type the appropriate code in the OnLoad function, and then click Save. The code that you type in the Onload function depends on the language that you selected as the form template code language:
If you selected JScript as the form template code language, type the following code in the OnLoad function.
If you selected VBScript as the form template code language, type the following code in the OnLoad function.
- In the InfoPath window, click Preview.
- When the Debugger dialog box appears, click Microsoft Script Editor, and then click Yes.
Keywords: kbtshoot kbexpertiseinter kbprb KB931427