Crystal Report supports export of Reports in many formats. In these tutorials let us explore how to export Crystal report using the various options available in Crystal Reports.
- Exporting Crystal Reports To Pdf
- How To Convert Crystal Report To Pdf In Asp.net Using Vb.net
- Crystal Reports Export To Pdf
- Convert Crystal Report To Pdf In Vb6
You can look at the various export formats that are supported by the Crystal Report from the tutorials Crystal Report Export formats
If you are new to Crystal Report you can look at our following tutorials to get started
Table of Content
- How to Export Crystal Report
- Crystal Report Viewer Control
- Export Crystal Report Using Report Document (SDK)
How to Export Crystal Report
Jun 23, 2006 Currently I have an old developed system which use CR 9 with VB.Net 6. System deployed in Windows 2003 server. How can I use this method to convert to PDF with our old code? (Currently windows 10 not support crystal reports viewer.) We use report.asp file which gets data by session.
Crystal Report can be exported in two ways
- Using Crystal Viewer Control.
- Using the method provided in Report Document Object (SDK).
Crystal Report Viewer Control
Crystal Report Viewer control is a .NET control. You can add it to your windows form or to web form so that you can display the report to the user. You can add this control to the form by dragging it from the toolbox.
Crystal Report viewer control displays the report to the user at runtime. It has the option to print, search, browse through the pages of the report. It has also had the option to export the report. This Option found at the top left corner of the Report
To Export to The Report do the following
Export Crystal Report Using Web Application
- Run your Crystal Report Project.
- Select the Export Report button at the top Left Corner.
- From the File Format Drop drown select appropriate format.
- From Page Range Option Select All Pages
If you want print selected pages choose Select Pages and enter the from and to page No. Note that some of the file formats has this feature disabled - Click on Export.
- File is downloaded.
Export Crystal Report Using Windows Application
Export Crystal Report in Windows Application
- Run your Crystal Report Project
- Select the Export Report button at the top Left Corner
- From the Save as Drop drown select appropriate format
- Note that Page Range option is not provided in the windows version of Crystal Report Viewer Control
- In File Name Option enter the name of the file
- Click on Save
Export Crystal Report Using Report Document (SDK)
Another way to Export crystal report is using the Methods provided in Report Document object. This option gives us the most flexibility when comes to exporting the report.
All the methods are available in the Namespace CrystalDecisions.CrystalReports.Enginewhich is contained in the assembly (dll) CrystalDecisions.CrystalReports.Engine.dll
Here is the list of Methods available in the SDK.
ExportToDisk
Use this option to export the report to disk. Method has following Option