 |
|
|
|
Deploying ReportViewer Control
|
|
|
 |
|
Location: Blogs Andy's Blog |
|
| Posted by: host |
5/19/2006 4:07 PM |
So you've created a cool new WindowsForms Smart Client Application that uses the ReportViewer control, and it's time to deploy it. There is an article here that explains how to use the ReportViewer.exe redistributable.
But what if you don't want to distribute that funky ReportViewer.exe? Maybe you just want to throw the files on a PC and let a prototype tester have at it?
Sure, you can do that - first snag these two files from C:\Program Files\Microsoft Visual Studio 8\ReportViewer
Microsoft.ReportViewer.Common.dll Microsoft.ReportViewer.WinForms.dll
And now the tricky part, you need to snag Microsoft.ReportViewer.ProcessingObjectModel.dll from the GAC. It will be located in a directory something like C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\8.0.0. 0__b03f5f7f11d50a3a
...but remember, you'll need to use the Command Line to get at this file, because of the cool Explorer add-in for the GAC.
Put the three ReportViewer assemblies in your app's BIN folder and you should be good to go! |
|
| Permalink |
Trackback |
Comments (8)
Add Comment
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 11:31 AM
|
|
Though I can see the \GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel directory I can not change to that directory from the command prompt. Any ideas? Thanks
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 11:49 AM
|
What are you seeing when you cd to that directory? Try these specific steps:
(1) open a command prompt (select Start/Run and then enter "cmd" and press enter)
(2) type the following command and press enter:
cd C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel
(3) type dir and press enter. you should see:
10/29/2005 05:36 PM 8.0.0.0__b03f5f7f11d50a3a
(4) type cd 8.0.0.0__b03f5f7f11d50a3a and press enter.
(5) type dir. You should see: 10/29/2005 05:36 PM 49,152 Microsoft.ReportViewer.ProcessingObjectMo del.dll
(6) copy the file to your bin directory: copy *.dll c:\MyProject\bin
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 11:55 AM
|
I am uisng the command promt. I can "cd" down to the gac_msil but when i then try to CD to Microsoft.ReportViewer.ProcessingObjectModel as a directory I get the error "Invalid Directory".. by the way I can see the directory when using a dir \w but just can't CD to it. Thanks
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 12:16 PM
|
|
hmmmm... could it be a security problem? Does your account have access to the folder? Maybe try as an administrator?
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 12:23 PM
|
I have admin rights. The property box shows ReadOnly is green (not checked though) What is really odd is that the Web Server's GAC_MSIL has the item too but I still get the error. So I tried experimenting in the Windows Explorer and I noticed that from within Windows we can browse to the folder and choose File\Assembly\Copy but this copies the entire directory. When I placed the copy in my Local Bin the process created a sub directory "Assembliy" with the entire contents of the GAC_MSIL. Thanks. I'm not sure how to add my name to your blog to replace Anonymous. Thanks Bob Carretta
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
7/26/2006 1:23 PM
|
|
Ok My team mate was abel to drill down and grab the file so it is all working now.. I wouldn't have known to go down to the 8.0.0 etc directory witout your help. Thanks.
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
10/25/2006 3:43 AM
|
|
Does anyone know why MS has taken the route of requiring this install to be run? Our org doesn't install apps on client machines, they are run off the network, with an elaborate system to resolve references. It seems to work fine like this, with the assemblies on a share, but I'm wondering if we're asking for trouble by not doing it the way it is 'meant' to be done?
|
|
|
Re: Deploying ReportViewer Control
|
By Anonymous on
10/25/2006 6:06 AM
|
|
I think what your are losing by not running the install is that the assemblies are not placed in the GAC --- instead thy will be private assemblies. So when an update to the ReportViewer is available, you will need to update each of your applications on a user's machine separately instead of all in one place.
|
|
|
|
 |
|
 |
|
|