The Cut command and the Copy command do not work correctly on an InfoPath form element in Internet Explorer 7 if you use the shortcut menu

Article translations Article translations
Article ID: 972775 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You use Windows Internet Explorer 7 to open a Web page that contains a Microsoft Office InfoPath form.
  • You right-click an element in the InfoPath form, and then you click Cut or Copy.
  • You try to paste the element onto the InfoPath form or elsewhere.
In this scenario, the operations do not work correctly.

For example, you may encounter the following issues:
  • When you right-click an element and then click Cut, the element is not removed from its original position as expected.
  • When you right-click an element, click Copy, and then try to paste on an InfoPath form, the content of the element is pasted instead of the element itself.

CAUSE

When you right-click an element in Internet Explorer 7, and then a shortcut menu appears, the Mshtml.dll module (code name "Trident") caches the element that you click. All executed commands use the cached element as the primary target before the Mshtml.dll module tries other options, such as the current selection. InfoPath sets the current selection in an attempt to control which elements are used by the Cut, Copy, and Paste commands. However, the cached element prevents InfoPath from using the current selection. Therefore, the Cut, Copy, and Paste commands do not work correctly on an InfoPath element if you use the shortcut menu.

RESOLUTION

Security update information

To resolve this problem, install the most recent cumulative security update for Windows Internet Explorer. To do this, visit the following Microsoft Web site:
http://update.microsoft.com
For more technical information about the most recent cumulative security update for Windows Internet Explorer, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/current.aspx
Note This update was first included in security update 974455 (MS09-054). For more information, click the following article number to view the article in the Microsoft Knowledge Base:
974455 MS09-054: Cumulative Security Update for Internet Explorer

Registry information

After you install the cumulative security update for Internet Explorer MS09-034, you must add the following registry value to resolve this problem.

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 in InfoPath and in other applications, this update introduces a feature-control registry key that disables element caching for shortcut menus. By default, this feature-control registry key is turned off to preserve compatibility in Internet Explorer and in other Mshtml.dll module hosts that do not have this fix. This feature-control registry key has more precise control over which objects are targeted by shortcut menu operations. This control helps resolve this issue in applications that host the Mshtml.dll module and that need this update. However, when you set this feature-control registry key, the host application must exactly control the targets of their shortcut menu operations.

To add this feature-control registry key, follow these steps:
  1. Click Start
    Collapse this imageExpand this image
    Start button
    , type regedit in the Start Search box, and then press ENTER.
    Collapse this imageExpand this image
    User Account Control permission
    If you are prompted for an administrator password or for confirmation, type the password, or provide confirmation.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following key name, and then press ENTER:
    FEATURE_DONT_CACHE_CONTEXTMENU_OBJECT_KB972775
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type iexplore.exe, and then press ENTER.
  7. Right-click iexplore.exe, and then click Modify.
  8. In the Value data box, type 1, and then click OK.
  9. Exit Registry Editor.

WORKAROUND

To work around this problem, use the ribbon command bar, or use the keyboard shortcuts (CTRL+X or CTRL+C) to run the Cut and Copy commands on an element from an InfoPath form in Internet Explorer 7.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 972775 - Last Review: October 7, 2011 - Revision: 3.0
APPLIES TO
  • Windows Internet Explorer 7
Keywords: 
kbexpertiseinter kbsurveynew kbqfe atdownload KB972775

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com