Microsoft KB Archive/262464

{|
 * width="100%"|

WD97: Document File Size Increases with EMF, PNG, GIF, or JPEG Graphics

 * }

Q262464

-

The information in this article applies to:


 * Microsoft Word 97 for Windows

-

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the &quot;Restoring the Registry&quot; Help topic in Regedit.exe or the &quot;Restoring a Registry Key&quot; Help topic in Regedt32.exe.

SYMPTOMS
When you save a Word document containing an EMF, PNG, GIF, or JPEG graphic as a different file format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), the file size of the document may dramatically increase.

For example, a Word 97 document containing a JPEG graphic saved as Word 97 (Word Document) may have a file size of 45,568 bytes (44.5KB). However, when you save this file as Word 6.0/95 (*.doc) or Rich Text Format (*.rtf), the file size may grow to 1,289,728 bytes (1.22MB).

CAUSE
This functionality is by design in Microsoft Word 97. If an EMF, PNG, GIF, or JPEG graphic is inserted into a Word document, when the document is saved, two copies of the graphic are saved in the document. Graphics are saved in the applicable EMF, PNG, GIF, or JPEG format and are also converted to WMF (Windows Metafile) format.

RESOLUTION
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the &quot;Changing Keys and Values&quot; Help topic in Registry Editor (Regedit.exe) or the &quot;Add and Delete Information in the Registry&quot; and &quot;Edit Registry Data&quot; Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD).

To prevent Word from saving two copies of the graphic in the document, and to reduce the file size of the document, add the ExportPictureWithMetafile=0 string value to the Windows registry using the following steps:

 Quit Word and all Microsoft Office programs. On the Windows Start menu, click Run. In the Open box, type regedit and click OK.  Go to and select the following registry key: "HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Word\Options" NOTE: To access the Options registry key, you need to expand the various folders by either double-clicking each folder or clicking the plus sign (+) to the left of the folders.  With the Options folder (key) selected, point to New on the Edit menu and click String Value. Type ExportPictureWithMetafile and press ENTER.

NOTE: There are no spaces in the string value name. With the string value ExportPictureWithMetafile selected, click Modify on the Edit menu. In the Value data box, type 0.

NOTE: Type a zero for the Value data.</li> Click OK.</li> On the Registry menu, click Exit.</li></ol>

Now, when you save a Word document containing an EMF, PNG, GIF, or JPEG graphic in a different format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), Word does not retain two copies of the graphic and does not dramatically increase the file size of the document as compared to the Word 97 version of the file.

Additional query words: filesize increase

Keywords : kbdta word8 word97

Issue type : kbprb

Technology : kbWordSearch kbWord97 kbWord97Search kbZNotKeyword2