Using ReportViewer export report to pdf file

Posted on 2006-07-03
Last Modified: 2008-01-09
Hi, seems to be a simple question, but i searched through the ReportViewer class and did not find such Export() method or something like that. I am using VS2005, using the ReportViewer to display the .rdlc report.

Question by:pckben
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 70

Expert Comment

by:Éric Moreau
ID: 17032563
Hi pckben,

You need to use the ExportToDisk method of the ReportDocument object


Author Comment

ID: 17032601
Hi emoreau, thanks for your reply!

I think the problem is my project missing some references. But I can only found in my .NET reference list this two:
Microsoft.ReportViewer.WinForms (and the WebForm one)

Then I used Object Browser to search through it and could not find anything to use. Event your ExportToDisk and ReportDocument. Where did you find those?

I tried download and installed the ReportViewer package from Microsoft but seems it doesnt help.

(please take note i am using the rdlc with the ReportViewer, not the CrystalReportViewer one)

Anyone could show me the problem here please?

LVL 70

Expert Comment

by:Éric Moreau
ID: 17032623
The ReportDocument is part of CrystalDecisions.CrystalReports.Engine
On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button


Author Comment

ID: 17032699
oh so you are mentioning the CrystalReportViewer with the .rpt report arent you?

The problem is that, from the ReportViewer object (not the CrystalReportViewer one), i could only use reportviewerObject.LocalReport to link to the report object, but then it doesnt provide me any export method!

LVL 70

Expert Comment

by:Éric Moreau
ID: 17032836
I am using the version of Crystal Reports that comes with VS 2005. The ReportDocument object is not part of the viewer.

Author Comment

ID: 17032926
hmm could you please show me how to link from my ReportViewer and LocalReport objects to that ReportDocument object so that i could use the Export function?
LVL 13

Accepted Solution

EwaldL earned 50 total points
ID: 17062923
Looks lilke you have added the new viewer for Microsoft's new report format, instead of the Crystal viewer. Here's some very detailed tutorial for crystal in .net 2005

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question