You receive a "Visual Studio must be used to add business logic to this form template" error message when you close the Form Options dialog box in InfoPath 2003 (891160)
The information in this article applies to:
- Microsoft Office InfoPath 2003, Service Pack 1 (SP1)
SYMPTOMSWhen you close the Form Options dialog box in Microsoft Office InfoPath 2003, you receive the following error message: Visual Studio must be used to add business logic to this form template. Please close this form template and open the Visual Studio project for it. Note If you make changes before you close the Form Options dialog box, the changes are successfully saved even though you receive this error message. CAUSEThis problem occurs when you create an InfoPath Form Template project in Microsoft Visual Studio .NET 2003 and you click to select the Save using custom code check box in the Forms Options dialog box. When you select this check box, Visual Studio .NET 2003 adds the OnSaveRequest event handler code to the project. Therefore, when you open the form template file (.xsn) outside Visual Studio .NET in InfoPath, you receive the error message.WORKAROUNDTo work around this problem, make design changes to the form template file (.xsn) only when you work in the InfoPath Form Template project in Visual Studio .NET 2003.
Modification Type: | Major | Last Reviewed: | 8/22/2006 |
---|
Keywords: | kbProgramming kbdesign kbXML kberrmsg kbinfo kbtshoot kbBug kbprb KB891160 kbAudDeveloper |
---|
|