If you have a chart or image in your reportviewer and you want to export file in PDF format, you will have an unusable big size pdf file.
Here is a work around fromsnapApps:(1/19/2007)
"snapApps createda solution for this problem. It involves disabling the export featurefrom the reportViewer toolbar and rendering the PDF through a custombutton. That's the easy part. Then you just use our PDFCompress libraryto compress the image streams contained within the PDF. You candownload PDFCompress athttp://www.snapapps.com/Components.aspx."
Hope this helps someone.
Hi,
I found a possible solution for this:
Download Orcas 2 Beta (I used the Virtual PC image, but the regular installation should work)
Look for:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Note that the ProcessingObjectModel is in the global assembly cache. The way I was able to copy it was by going to the command line and doing adir Microsoft.ReportViewer.ProcessingObjectModel.dll /sin the root of the c drive. Then I found the location of the file, changed directory and copied the file to a previously created directory.
Make sure that the files that you pick are version 9.0.0.0!
Copy all those files and add the references in your VS2005 project. It seems that the ReportViewer version 9.0.0.0 which is in Orca is compatible with .NET 2.0.
Next, replace all references to 8.0.0.0 in any page that uses the report viewer with 9.0.0.0. Also, the web.config file has a reference to report viewer, make sure you substitute 8.0.0.0 for 9.0.0.0.
I have tested this method and it works. Make sure that the bin directory of your deployed application has the three files above.
No comments:
Post a Comment