Share via


ExchangeFolderDestinationOptions Class

Provides properties for retrieving and setting options when exporting to Microsoft exchange folders.

Namespace CrystalDecisions.Shared Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)

Syntax

'Declaration
Public Class ExchangeFolderDestinationOptions
    Inherits ExportDestinationOptions
    Implements ICloneable
public class ExchangeFolderDestinationOptions : ExportDestinationOptions, ICloneable

Example

This example shows how to use to set some of the properties of the ExchangeFolderDestinationOptions class.

'Declaration

          Private Sub ExportToExchange(ByVal myReportDocument As ReportDocument, ByVal folder As String, ByVal profile As String, ByVal password As String)
          Dim myExchangeFolderDestinationOptions As ExchangeFolderDestinationOptions = ExportOptions.CreateExchangeFolderDestinationOptions()
          Dim myExportOptions As ExportOptions = New ExportOptions

          myExchangeFolderDestinationOptions.DestinationType = ExchangeDestinationType.ExchangePostDocMessage

          myExchangeFolderDestinationOptions.FolderPath = folder
          myExchangeFolderDestinationOptions.Profile = profile
          myExchangeFolderDestinationOptions.Password = password
          myExportOptions.ExportDestinationOptions = myExchangeFolderDestinationOptions

          myExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
          myExportOptions.ExportFormatType = ExportFormatType.Excel

          myReportDocument.Export(myExportOptions)
          End Sub
        
          private void ExportToExchange(ReportDocument reportDocument, String folder, String profile, String password)
          {
          ExchangeFolderDestinationOptions exchangeFolderDestinationOptions = ExportOptions.CreateExchangeFolderDestinationOptions();
          ExportOptions exportOptions = new ExportOptions();

          exchangeFolderDestinationOptions.DestinationType = ExchangeDestinationType.ExchangePostDocMessage;

          exchangeFolderDestinationOptions.FolderPath = folder;
          exchangeFolderDestinationOptions.Profile = profile;
          exchangeFolderDestinationOptions.Password = password;
          exportOptions.ExportDestinationOptions = exchangeFolderDestinationOptions;

          exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
          exportOptions.ExportFormatType = ExportFormatType.Excel;

          reportDocument.Export(exportOptions);
          }
        

Inheritance Hierarchy

Object
   ExportDestinationOptions
      ExchangeFolderDestinationOptions

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ExchangeFolderDestinationOptions Members
CrystalDecisions.Shared Namespace