SAP Knowledge Base Article - Public

1297369 - What are the export formats in NET for the CrystalReportsViewer and the Crystal Report .NET SDK?

Symptom

What are the export formats in NET for the CrystalReportsViewer and the Crystal Report .NET SDK?

Reproducing the Issue

<ul><li>Crystal Reports XI Release 2  - Assembly version   <span style="color: black"><span style="color: black">11.5.*</span></span></li><li><span style="color: black"></span>Crystal Reports 2008 - <span style="color: black">Assembly version   12.0.*</span></li></ul>

Resolution

The export formats for the Crystal Reports XI Release 2 CrystalReportsViewer are :

  • Crystal Reports (*.rpt)
  • PDF (*.pdf)
  • Microsoft Excel (97-2003)(*.xls)
  • Microsoft Excel (97-2003) Data-Only (*.xls)
  • Microsoft Word (97-2003)(*.doc)
  • Microsoft Word (97-2003) - Editable(*.rtf)
  • Rich Text Format (RTF) (*.rtf)

The following additional export formats are available in the Crystal Reports .NET SDK:

  • HTML32
  • HTML40
  • CharacterSeparatedValues (*.csv)
  • Text (*.txt)

 The export formats for the Crystal Reports 2008 .NET CrystalReportsViewer are :

  • Crystal Reports (*.rpt)
  • PDF (*.pdf)
  • Microsoft Excel (97-2003)(*.xls)
  • Microsoft Excel (97-2003) Data-Only (*.xls)
  • Microsoft Word (97-2003)(*.doc)
  • Microsoft Word (97-2003) - Editable(*.rtf)
  • Rich Text Format (RTF) (*.rtf)
  • XML (*.xml)


The following additional export formats are available in the Crystal Reports .NET SDK:

  • HTML32
  • HTML40
  • CharacterSeparatedValues (*.csv)
  • Text (*.txt)

You can now set the export types available in CR for VS:

// set up the format export types:
int myFOpts = (int)(
    CrystalDecisions.Shared.ViewerExportFormats.RptFormat |
    CrystalDecisions.Shared.ViewerExportFormats.PdfFormat |
    CrystalDecisions.Shared.ViewerExportFormats.RptrFormat |
    CrystalDecisions.Shared.ViewerExportFormats.XLSXFormat |
    CrystalDecisions.Shared.ViewerExportFormats.CsvFormat |
    CrystalDecisions.Shared.ViewerExportFormats.EditableRtfFormat |
    CrystalDecisions.Shared.ViewerExportFormats.ExcelRecordFormat |
    CrystalDecisions.Shared.ViewerExportFormats.RtfFormat |
    CrystalDecisions.Shared.ViewerExportFormats.WordFormat |
    CrystalDecisions.Shared.ViewerExportFormats.XmlFormat |
    CrystalDecisions.Shared.ViewerExportFormats.ExcelFormat |
    CrystalDecisions.Shared.ViewerExportFormats.ExcelRecordFormat);
//CrystalDecisions.Shared.ViewerExportFormats.NoFormat); // no exports allowed
//int myFOpts = (int)(CrystalDecisions.Shared.ViewerExportFormats.AllFormats);

crystalReportViewer1.AllowedExportFormats = myFOpts;


See Also

SAP Note 1200157 - What are the types of export format available in Crystal Report Designer?SAP Note 1196714 - The export format types for a Desktop Intelligence document SDK SAP Note 1209658 - Cannot See Export To Word, Excel or RTF Format With Distributed ReportSAP Note 1277037 - Export in TXT format from infoview SAP Note 1188522 - Export to XML Format

See Also

<pre>SAP Note 1200157 - What are the types of export format available in Crystal Report Designer?<br />SAP Note 1196714 - The export format types for a Desktop Intelligence document SDK <br />SAP Note 1209658 - Cannot See Export To Word, Excel or RTF Format With Distributed Report<br />SAP Note 1277037 - Export in TXT format from infoview <br />SAP Note 1188522 - Export to XML Format</pre>

Keywords

KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio