Microsoft KB Archive/173411

= CG3: Error Trying to Delete Image, Category in ClipArt Gallery =

Article ID: 173411

Article Last Modified on 6/12/2007

-

APPLIES TO


 * Microsoft Clip Gallery 3.0
 * Microsoft Excel 97 Standard Edition
 * Microsoft PowerPoint 97 Standard Edition
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q173411



SYMPTOMS
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 "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe. When you attempt to delete a category or a thumbnail from Clip Gallery, you receive one of the following error messages:

Cannot delete this clip because it resides in a read-only preview file.

-or-

Unable to fully delete category because some of the previews reside in a read-only preview file.

-or-

This category cannot be deleted.



CAUSE
This error occurs because the clip image or category that you are attempting to delete is stored in a ClipArt Gallery Package (.cag) file on a read-only volume. For example, the .cag file is stored on a read-only network location or a compact disc.



WORKAROUND
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 "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

To work around this behavior, move the .cag file to your hard disk, remove the read-only attribute and then delete the desired category or clip image, following these steps:

 Determine the path for the .cag file that contains the clip image or category you want to delete. To do this, follow these steps:

 On the Insert menu, point to Picture, and then click Clip Art. Select the image you want to delete (or select any image in the category you want to delete) and then click Clip Properties.

The Clip Properties dialog box appears. It contains the path to the .cag file and it also indicates whether the image is read-only. Note the path and then click Cancel.  On the Windows Start menu, point to Programs, and then click Windows Explorer.</li> Open the folder that contains the .cag file you want to delete.</li> Copy the .cag file to your hard disk and note the path for this file.</li> Remove the read-only attribute from the file, following these steps:

 Right-click the .cag file and then click Properties on the menu that appears.</li> In the Attributes section, click to clear the Read-only check box.</li> Click OK.</li></ol> </li> Modify the registry so that Clip Gallery can locate the .cag file, using these steps:

 Exit all programs.</li> On the Start menu, click Run.</li> In the Open box, type Regedit and then click OK.</li> On the Edit menu, click Find.</li> In the Find dialog box, click to select Data and click to clear the remaining check boxes.</li>  In the Find What box, enter the name of the .cag file you identified in step 1. Click Find Next.

When the search is completed, the registry key that is used to store the location of the .cag file is displayed in the status bar. For example, the registry key, which appears in the Status bar, may look similar to this: <pre class="fixed_text">        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClipArtGallery\3.0\ ConcurrentDatabases\Publisher 4.0 ClipArt4 </li> In the right-hand pane of Registry Editor, in the Name column, double- click CAG.</li> <li>In the Edit String dialog box, in the Value Data box, select the path and delete it. Type the new path you noted in step 4.</li> <li>Click OK.</li></ol> </li></ol>

You can now delete categories and clips that reside in the local .cag file.

<div class="status_section">

STATUS
This behavior is by design. Microsoft welcomes suggestions or comments about changes in functionality and product design.

<div class="references_section">