Dennis Bottjer | ASP.NET + SharePoint Architect, Trainer & Speaker

"An Ounce of Prevention is Worth a Pound of Cure" - Ben Franklin
posts - 168, comments - 59, trackbacks - 41

My Links

News

Add to Technorati Favorites The views expressed in this blog are mine and mine alone, not that of my employer, Microsoft, or anyone else’s. No warrantee is given for the quality of any material on this site.

Tag Cloud

Archives

Post Categories

Hacking the Report Viewer Redistributable

Click Once is the most recent and most successful Microsoft web deployment strategy for Smart Client Applications.  The technology is a great way to deploy and/or update .NET 2.0 applications on client machines without the need for an installer. 

I have used the Report Viewer Control included in Visual Studio 2005 to embed reports within our Smart Client.  The control allows me to create professional reports without the use of a third party tools.  Plus I can always scale up to Reporting Services should the need arrise. 

There is a Report Viewer Redistributable available for download.  However, the Redistributable is an MSI and installs all components in the GAC.  This action requires administrator permissions which is frowned upon by our network security team.  The MSI is 1.83 MB and contains several extra files besides the core DLL's.   

We can solve this problem by "hacking" the MSI Redistributable.  The following steps were performed by co-worker John Arcidiacono and myself to successfully solve the challenge described above.

  1. [ReportViewerRedistributable]
  2. Use favorite Zip Utility to extract the MSI.exe to a folder of your choice
  3. Find the file ReportV1.cab in extract folder from step #2
  4. Use favorite Zip Utility to extract ReportV1.cab to a folder of your choice
  5. Open the new folder from step 4 and find 4 files
  6. Rename: FL_Microsoft_ReportViewer_Common_dll_117718_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.Common.dll
  7. Rename: FL_Microsoft_ReportViewer_ProcessingObject_125592_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.ProcessingObjectModel.dll
  8. Rename: FL_Microsoft_ReportViewer_WebForms_dll_117720_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.WebForms.dll
  9. Rename: FL_Microsoft_ReportViewer_WinForms_dll_117722_____X86.3643236F_FC70_11D3_A536_0090278A1BB8 To Microsoft.ReportViewer.WinForms.dll
  10. Copy these dlls to your smart client project and reference them
  11. Now they will be part of the Smart Client's Build Output and Click Once Deployment

Print | posted on Tuesday, October 17, 2006 3:25 AM | Filed Under [ ASP.NET Smart Client ]

Feedback

Gravatar

# re: Hacking the Report Viewer Redistributable

slick. kicked =P
10/17/2006 4:34 AM | royashbrook
Gravatar

# re: Hacking the Report Viewer Redistributable

Nice job Dennis.
1/23/2007 2:47 AM | dstrommer
Gravatar

# Hacking the Report Viewer Redistributable

10/17/2006 4:19 AM | www.dotnetkicks.com
Gravatar

# South Florida Code Camp 2007

2/23/2007 3:02 AM | drowningintechnicaldebt.com
Gravatar

# Extract ReportViewer controls from Redistributable package

6/9/2008 8:30 PM | code.bravo9.net
Gravatar

# Report Viewer

10/5/2008 11:23 PM | community.ugiss.org
Gravatar

# Reporting Services

10/15/2008 10:51 AM | i.florianb.net
Gravatar

# Using the Microsoft Report Viewer Control on a Shared ASP.NET Web Server

11/16/2008 12:16 AM | faceysbytes.com
Gravatar

# Reports in shared hosting | hilpers

1/18/2009 2:04 PM | www.hilpers.it
Gravatar

# re: Hacking the Report Viewer Redistributable

well done! Thanks
1/19/2010 6:00 PM | NAL21
Gravatar

# re: Hacking the Report Viewer Redistributable

It tells us that the ProcessingObjectModel.dll is put into the GAC (Global Assembly Cache). That is why the file is not located anywhere we can normally find it. The thread then goes over a way to "Hack" the report viewer redistributable and retrieve the DLL from there
3/18/2010 7:15 AM | guida ai giochi del casinò
Gravatar

# re: Hacking the Report Viewer Redistributable

Thanks. Been looking for the files for Report Viewer while my ISP haven't got it installed on their servers :S
Just as an info. I'm using 2010 version of Report Viewer and Visual Studio to program, and the first file you download from Microsoft in a version 2010 isn't called MSI.exe, but ReportViewer.exe and the second file isn't called ReportV1.cab, but "reportviewer_redist2010core.cab", but the procedure is the same. ;-)
Thank you very much :D
9/6/2010 10:26 AM | Stephen
Comments have been closed on this topic.

Powered by: