Solved

Using ReportViewer export report to pdf file

Posted on 2006-07-03
9
2,300 Views
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.

Thanks.
pckben
0
Comment
Question by:pckben
  • 3
  • 3
9 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
Hi pckben,

You need to use the ExportToDisk method of the ReportDocument object

Cheers!
0
 

Author Comment

by:pckben
Comment Utility
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
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
The ReportDocument is part of CrystalDecisions.CrystalReports.Engine
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:pckben
Comment Utility
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
 
LVL 69

Expert Comment

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

Author Comment

by:pckben
Comment Utility
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
 
LVL 13

Accepted Solution

by:
EwaldL earned 50 total points
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now