You might encounter a situation where forms continue to open in a form template that you deleted. This may seem strange until you learn that InfoPath caches form templates. Although you deleted the physical copy, the cached version still exists.
InfoPath caches form templates the first time they are used. This enables you to use online InfoPath forms when you are offline. It also improves performance. Once both the physical and cached form templates are deleted, forms that use that form template can no longer be opened in InfoPath.
You can also remove a form template from the InfoPath cache without deleting the physical copy. This is occasionally necessary, when developing a form, in order to view the changes that you have made. In this task we will learn how to remove a form template from the InfoPath cachce.
Remove a form template from the InfoPath cache:
- Launch InfoPath.
- In the Fill Out A Form dialog box, select the All Forms category.
- Select the form template you want to remove from the InfoPath cache.
If you do not see the form template listed, select All Forms from the list of Form Categories at the top left of the Fill Out A Form dialog box.
- Click Remove This Form from the list of Form Tasks at the top right of the dialog.
- Close InfoPath.
If the above steps fail and you find the old for template is still loading you can try one of the following:
- Choose Run from the Start menu, type infopath /cache clearall, and then click OK.
- Manually delete cached InfoPath template in the cache folder located at:
[Vista]: C:\Users\<Username>\AppData\Local\Microsoft\InfoPath\FormCache2
[XP]: C:\Documents and Settings\<Username>\Local Settings\Application Data\Microsoft\InfoPath\FormCache2
Try it:
Once you have deleted both the physical and cached copy of the form template, launch a form file created from that form template. InfoPath will still be launched, but you will receive a warning dialog box stating that the form template cannot be found.
Open the Form XML Without InfoPath:
If you want to prevent the form from opening in InfoPath at all, then you need to remove two tags, known as processing-instructions, from your form. Using a text editor, such as Notepad, remove the following two processing-instructions from your form .xml file:
<?mso-infoPathSolution . . . ?> <?mso-application . . . ?> |
©2004 Greg Collins. All rights reserved. Licensed to Autonomy Systems, LLC for display on InfoPathDev.com.