• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2341
  • Last Modified:

Using ReportViewer export report to pdf file

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.

Thanks.
pckben
0
pckben
Asked:
pckben
  • 3
  • 3
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Hi pckben,

You need to use the ExportToDisk method of the ReportDocument object

Cheers!
0
 
pckbenAuthor Commented:
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.Common
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?

pckben.
0
 
Éric MoreauSenior .Net ConsultantCommented:
The ReportDocument is part of CrystalDecisions.CrystalReports.Engine
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
pckbenAuthor Commented:
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!

pckben
0
 
Éric MoreauSenior .Net ConsultantCommented:
I am using the version of Crystal Reports that comes with VS 2005. The ReportDocument object is not part of the viewer.
0
 
pckbenAuthor Commented:
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?
0
 
EwaldLCommented:
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 http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now