A word is not a crystal, transparent and unchanged; it is the skin of a living thought, and may vary greatly in color and content according to the circumstances and the time in which it is used.
Oliver Wendell Holmes

Writing crystallizes thought and thought produces action.
Paul J. Meyer

Good character is like a rubber ball — thrown down hard — it bounces right back. Good reputation is like a crystal ball — thrown for gain — shattered and cracked.
Linall Jr. A. L.

The problem occurred when I updated to Windows 7.  My Crystal Reports Viewer no longer worked.  The web site recognized that it was missing but the install did not work.  Nothing I tried seemed to work,  I found an answer on a Microsoft web site BUT the answer was flawed.  This blog shows how overcome the flawed answer and make it work.

When the server needs to install the Crystal Reports Viewer, the files are extracted from a CAB file stored on the server at location like http://yourwebsitewherecrystalisinstalled/crystalreportviewers11/ActiveXControls/ActiveXViewer.cab

  Copy this CAB file to a local folder and extract the files out of the CAB.  Your folder should look something like

This is the part where Microsoft’s answer is flawed.  They suggest registering the files with the following command.  REGSVR32 /S CRVIEWER.DLL  Well, the /S switch means silent.  If the command succeeds or fails, no message is displayed.  Well, I had an error but did not know it until I removed the /S switch.

What was my error?  Not enough rights.  Notice in the screen shot above, the title bar says this command window is running as an administrator.  I could only register the dll’s as an administrator which I suspect is the under lying problem with the Crystal Reports Viewer – It is trying to install/register without admin rights.

To run cmd as admin, type cmd in the search box. Right mouse click on cmd.exe and “Run as Administrator”. Click Yes on User Access Control dialog box.

With Command Prompt, run the following commands.

Regsvr32 crviewer.dll

Regsvr32 reportparameterdialog.dll

Regsvr32 sviewhlp.dll

Regsvr32 swebrs.dll

Make sure each command is successful.

Tags: ,

Leave a Reply