cancel
Showing results for 
Search instead for 
Did you mean: 

Export the out put of Crystal report into text file

Former Member
0 Kudos

Is it possible to export the out put of Crystal report into text file?

Accepted Solutions (0)

Answers (1)

Answers (1)

William_Laverde
Product and Topic Expert
Product and Topic Expert
0 Kudos

According to the Crystal Reports .NET SDK (see 2nd link below), it looks like you should use the ExportOptions class. But set the ExportFormatType to ExportFormatType.Text.

Sample snippit from the CR .NET SDK...

Private Sub ExportToDisk(ByVal myReportDocument As ReportDocument, ByVal fileName As String)

Dim myExportOpts As New ExportOptions

Dim diskOpts As DiskFileDestinationOptions

diskOpts = ExportOptions.CreateDiskFileDestinationOu2026

myExportOpts.ExportFormatType = _

ExportFormatType.RichText

myExportOpts.ExportDestinationType = _

ExportDestinationType.DiskFile

diskOpts.DiskFileName = fileName

myExportOpts.ExportDestinationOptions = diskOpts

myReportDocument.Export(myExportOpts)

End Sub

Source(s):

Save these to your desktop before viewing. Clear the "Always ask before opening this file" check box in the Open File dialog box. If you try to view thru browser you will get errors.

http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm

http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm