Crystal Reports Online Training

Learn Online, Anytime, Anywhere

Step-by-step tutorials and online videos.

Click Here To Learn More »

19.05 Advanced Techniques

Advanced Exporting

When you want to do more than a simple export to disk, use the Export() method. It has many classes and properties for customizing the export process. Consequently, having additional classes and properties makes this method more complicated to learn and use. This chapter gives you many examples that make it easy to copy and paste the code listings into your application.

Exporting a report consists of the following steps:

Create an ExportOptions object and set its properties.

Assign the type of destination where the export should be sent (e.g. disk file, email, MS Exchange Server).

Set the format type (Excel, PDF, etc.).

Assign the formatting options specific to each format type.

Call the ReportDocument.Export() method and pass it the ExportOptions object.

Although these steps are the same for every type of export, their implementation varies. Within the code listings of the following sections, you will see the details of how to perform each step. However, one aspect that is common to them all is they all use the ExportDestinationType enumeration. This specificies the destination for the export. This could be a disk file, an email, or a MS Exchange Server folder. You have to specify the destination type so that Crystal Reports knows where...

Get UNLIMITED Crystal Reports Online Training!

Click Here To Start Your Training!

1500+ Tutorial Pages

Complete Crystal Reports Online Training with over 1,500 pages of better than book quality Crystal Reports tutorials.

Step-by-step Online Videos

Learn at your own pace from the comfort of your home! Pause, rewind and watch online training videos anytime!

Online Community

Members-only community where you can post and answer questions. The community is checked on a regular basis by best selling Crystal Reports book author Brian Bischof to help answer your questions.

Cut & Paste Source Code

Save time with simple cut and paste source code you can use right now in your next report!

Click Here To Start Your Training!