Site icon Winhelponline

“Word has encountered a problem” Pasting from Paint to Word/Outlook

When you paste an image from the modern Paint app in Windows 11 to Microsoft Word or Microsoft Outlook, the following error may occur:

Word has encountered a problem.

The error message is the same when you paste the copied image (from Paint) into Outlook.

However, the image may get pasted from the Clipboard after you dismiss the dialog by clicking Ok.

Cause

The above error occurs due to a missing Ole32.dll registry value. For some reason, the modern Paint app doesn’t create the registry value during installation. This causes Word or Outlook to return an error when attempting to paste the item as an OLE item (that’s how Paint stores images on the Clipboard).

This is not a problem generated by Microsoft Office. Also, Windows 10 doesn’t have this issue, as it comes with the classic Paint app, and the OS creates the entries by default. Unless the missing registry key is created, restoring the classic Paint app on Windows 11 also doesn’t resolve the issue.

Solution

To resolve the error “Word has encountered a problem” when pasting images from Paint, follow these steps:

Create the MS Paint Ole32.dll Registry key

  1. Start the Registry Editor (regedit.exe).
  2. Navigate to the following key:
    HKEY_CLASSES_ROOT\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}
  3. Create a subkey named “InProcHandler32
  4. Select InProcHandler32 and set its (default) value data to “ole32.dll
  5. If you’re using Office 32-bit, make the same changes under this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}
  6. Exit the Registry Editor.

REG file to automate/deploy the above setting:

Download word-paste-ole-fix.zip, unzip, and run “word-paste-ole-fix.reg“.

Contents of the REG file (FYI)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32]
@="ole32.dll"

;For Office 32-bit running on Windows 11 (which is 64-bit)
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\InProcHandler32]
@="ole32.dll"

If you want to reverse the changes, run the undo.reg file.

That fixes the Office apps error when pasting images from MS Paint.

Exit mobile version